You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect when loading and saving CSV data that whatever defaults used for loading and saving can be used mindlessly if my data is simple enough. For example, in the below example, I would expect that new_df is equal to df:
However, this is not so. The index is saved as the first column by default, but is not read as the first column by default when loading data with read_csv().
Describe the solution you'd like
I should not have to pass in additional arguments to get the simplest use case to work for loading and saving data. I suggest either not saving the index by default when converting to CSV (this seems less desirable), or setting the index_col=0 by default when loading a CSV file.
API breaking implications
index_col would be set by default
Describe alternatives you've considered
Manually avoiding saving the index, and manually adding the index_col=0 keyword argument when loading CSV data. Both have caused me endless frustration.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
I expect when loading and saving CSV data that whatever defaults used for loading and saving can be used mindlessly if my data is simple enough. For example, in the below example, I would expect that
new_df
is equal todf
:However, this is not so. The index is saved as the first column by default, but is not read as the first column by default when loading data with
read_csv()
.Describe the solution you'd like
I should not have to pass in additional arguments to get the simplest use case to work for loading and saving data. I suggest either not saving the index by default when converting to CSV (this seems less desirable), or setting the
index_col=0
by default when loading a CSV file.API breaking implications
index_col
would be set by defaultDescribe alternatives you've considered
Manually avoiding saving the index, and manually adding the
index_col=0
keyword argument when loading CSV data. Both have caused me endless frustration.The text was updated successfully, but these errors were encountered: