Skip to content

Commit 52eba95

Browse files
committed
DOC: corrections
1 parent fc203a8 commit 52eba95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/categorical.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ type:
530530
str_cat
531531
str_cat.str.contains("a")
532532
533-
date_cat = pd.Series(date_range('1/1/2015', periods=5)).astype('category')
533+
date_cat = pd.Series(pd.date_range('1/1/2015', periods=5)).astype('category')
534534
date_cat
535535
date_cat.dt.day
536536

doc/source/whatsnew/v0.17.1.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Enhancements
8787
s
8888
s.str.contains("a")
8989

90-
date = pd.Series(date_range('1/1/2015', periods=5)).astype('category')
90+
date = pd.Series(pd.date_range('1/1/2015', periods=5)).astype('category')
9191
date
9292
date.dt.day
9393

0 commit comments

Comments
 (0)