Skip to content

Commit 8f422e2

Browse files
Merge pull request #9643 from jorisvandenbossche/doc
DOC: fix some doc errors/warnings
2 parents 48df0e0 + 19a4cba commit 8f422e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/source/categorical.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ categories or a categorical with any list-like object, will raise a TypeError.
386386

387387
.. ipython:: python
388388
389-
cat = Series(Categorical([1,2,3], categories=[3,2,1]))
390-
cat_base = Series(Categorical([2,2,2], categories=[3,2,1]))
391-
cat_base2 = Series(Categorical([2,2,2]))
389+
cat = Series([1,2,3]).astype("category", categories=[3,2,1], ordered=True)
390+
cat_base = Series([2,2,2]).astype("category", categories=[3,2,1], ordered=True)
391+
cat_base2 = Series([2,2,2]).astype("category", ordered=True)
392392
393393
cat
394394
cat_base

doc/source/io.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ class of the csv module. For this, you have to specify ``sep=None``.
10981098
.. ipython:: python
10991099
11001100
print(open('tmp2.sv').read())
1101-
pd.read_csv('tmp2.sv', sep=None)
1101+
pd.read_csv('tmp2.sv', sep=None, engine='python')
11021102
11031103
.. _io.chunking:
11041104

0 commit comments

Comments
 (0)