Skip to content

Commit d7dbaeb

Browse files
committed
Address comments on parse_dates part of docstring
1 parent 01b6930 commit d7dbaeb

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

pandas/io/parsers.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,23 +101,14 @@ class ParserWarning(Warning):
101101
If na_values are specified and keep_default_na is False the default NaN
102102
values are overridden, otherwise they're appended to
103103
parse_dates : various, default False
104-
Acceptable input types
105-
* boolean. If True -> try parsing the index.
106-
107-
* list of ints or names
108-
109-
* If [1, 2, 3] -> try parsing columns 1, 2, 3 each as a separate date
110-
column.
111-
112-
* list of lists
113-
114-
* If [[1, 3]] -> combine columns 1 and 3 and parse as a single date
115-
column.
116-
117-
* dict
118-
119-
* {'foo' : [1, 3]} -> parse columns 1, 3 as date and call result 'foo'
120104
105+
* boolean. If True -> try parsing the index.
106+
* list of ints or names. e.g. If [1, 2, 3] -> try parsing columns 1, 2, 3
107+
each as a separate date column.
108+
* list of lists. e.g. If [[1, 3]] -> combine columns 1 and 3 and parse as
109+
a single date column.
110+
* dict, e.g. {'foo' : [1, 3]} -> parse columns 1, 3 as date and call result
111+
'foo'
121112
Note: A fast-path exists for iso8601-formatted dates.
122113
keep_date_col : boolean, default False
123114
If True and parse_dates specifies combining multiple columns then

0 commit comments

Comments
 (0)