Skip to content

Commit dbb7e46

Browse files
committed
Cleanup v0.23.0.rst
1 parent 871b88a commit dbb7e46

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/source/whatsnew/v0.23.0.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ A ``DataFrame`` can now be written to and subsequently read back via JSON while
5454
5555
In [1]: df = pd.DataFrame({'foo': [1, 2, 3, 4],
5656
...: 'bar': ['a', 'b', 'c', 'd'],
57-
...: 'baz': pd.date_range('2018-01-01', freq='d', periods=4),
57+
...: 'baz': pd.date_range('2018-01-01', freq='D', periods=4),
5858
...: 'qux': pd.Categorical(['a', 'b', 'c', 'c'])},
5959
...: index=pd.Index(range(4), name='idx'))
6060
@@ -516,7 +516,6 @@ The method has now gained a keyword ``join`` to control the manner of alignment,
516516
In v.0.23 ``join`` will default to None (meaning no alignment), but this default will change to ``'left'`` in a future version of pandas.
517517

518518
.. ipython:: python
519-
:okwarning:
520519
521520
s = pd.Series(['a', 'b', 'c', 'd'])
522521
t = pd.Series(['b', 'd', 'e', 'c'], index=[1, 3, 4, 2])
@@ -856,7 +855,6 @@ In a future version of pandas :func:`pandas.concat` will no longer sort the non-
856855
The current behavior is the same as the previous (sorting), but now a warning is issued when ``sort`` is not specified and the non-concatenation axis is not aligned (:issue:`4588`).
857856

858857
.. ipython:: python
859-
:okwarning:
860858
861859
df1 = pd.DataFrame({"a": [1, 2], "b": [1, 2]}, columns=['b', 'a'])
862860
df2 = pd.DataFrame({"a": [4, 5]})
@@ -871,7 +869,7 @@ To keep the previous behavior (sorting) and silence the warning, pass ``sort=Tru
871869
872870
To accept the future behavior (no sorting), pass ``sort=False``
873871

874-
.. ipython
872+
.. ipython:: python
875873
876874
pd.concat([df1, df2], sort=False)
877875

0 commit comments

Comments
 (0)