API: different default for header
kwarg in read_csv vs read_excel
#11889
Labels
API - Consistency
Internal Consistency of API/Behavior
Enhancement
IO Excel
read_excel, to_excel
Needs Discussion
Requires discussion from core team before further action
From #11874 (comment)
The default for
hader
inread_csv
is'infer'
, while forread_excel
this is0
. In most cases this does not matter I think (as the infer will use 0 as the default). But, in the case of specifying thenames
explicitly, this makes a difference:For
read_csv
, you need to explicitly pass header=0 to replace header existing in file:while for
read_excel
, you need to explicitly pass header=None if the file contains no header row:Would it make sense to change the
read_excel
behaviour to make it more consistent to theread_csv
one?The text was updated successfully, but these errors were encountered: