Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated docs
  • Loading branch information
robintw committed Mar 13, 2016
commit 50311cef05596e2a4d151c5ffa8e4913f1bfd902
8 changes: 4 additions & 4 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ class ParserWarning(Warning):

Note: A fast-path exists for iso8601-formatted dates.
infer_datetime_format : boolean, default False
If parse_dates is enabled and this flag is set, pandas will attempt to
infer the format of the datetime strings in the columns, and if it can be
inferred, switch to a faster method of parsing them. In some cases this
can increase the parsing speed by ~5-10x.
If True and parse_dates is enabled, pandas will attempt to infer the format
of the datetime strings in the columns, and if it can be inferred, switch
to a faster method of parsing them. In some cases this can increase the
parsing speed by ~5-10x.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put in a link to pd.to_datetime here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hah, I forgot my own comment. If you want to add this in another PR great.

keep_date_col : boolean, default False
If True and parse_dates specifies combining multiple columns then
keep the original columns.
Expand Down
6 changes: 4 additions & 2 deletions pandas/tseries/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
unit : unit of the arg (D,s,ms,us,ns) denote the unit in epoch
(e.g. a unix timestamp), which is an integer/float number.
infer_datetime_format : boolean, default False
If no `format` is given, try to infer the format based on the first
datetime string. Provides a large speed-up in many cases.
If True and no `format` is given, attempt to infer the format of the
datetime strings, and if it can be inferred, switch to a faster
method of parsing them. In some cases this can increase the parsing
speed by ~5-10x.

Returns
-------
Expand Down