DOC: read_csv
and parameter date_format
add example of a dict of columns
#58462
Labels
read_csv
and parameter date_format
add example of a dict of columns
#58462
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html#:~:text=str%20or%20dict%20of%20column
Documentation problem
The
read_csv
has a parameterdate_format
which can can be "str or dict of columns" but it's not made clear dict of column.When my csv file has 3 date columns and all are formatted as '%d-%m-%Y' then it's easy, I understand I can use
date_format='%d-%m-%Y'
. But when 2 columns are formatted as%d-%m-%Y
and the last one is formatted%d-%m-%Y %H:%M:%S
then not clear how the parametre should given?Suggested fix for documentation
Can someone add a dict example to the documentation of the
read_csv
and thedate_format
parameter? I understand the documentation is generated from the sourcecode. But I couldn't find where the source code forread_csv
is located on githubThe text was updated successfully, but these errors were encountered: