Skip to content

Commit

Permalink
DOC: Add ordered categorical
Browse files Browse the repository at this point in the history
  • Loading branch information
galuhsahid committed Oct 4, 2019
1 parent c02059d commit 5ebb491
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/source/user_guide/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4657,9 +4657,10 @@ See the `Full Documentation <https://github.com/wesm/feather>`__.
'd': np.arange(4.0, 7.0, dtype='float64'),
'e': [True, False, True],
'f': pd.Categorical(list('abc')),
'g': pd.date_range('20130101', periods=3),
'h': pd.date_range('20130101', periods=3, tz='US/Eastern'),
'i': pd.date_range('20130101', periods=3, freq='ns')})
'g': pd.Categorical(list('abc'), ordered=True),
'h': pd.date_range('20130101', periods=3),
'i': pd.date_range('20130101', periods=3, tz='US/Eastern'),
'j': pd.date_range('20130101', periods=3, freq='ns')})
df
df.dtypes
Expand Down

0 comments on commit 5ebb491

Please sign in to comment.