Add argument to df.to_dicts()
and df.to_dict()
- maintain_column_order: bool
#16414
Labels
enhancement
New feature or an improvement of an existing feature
Description
It appears that
df.to_dict()
and to_dicts don't maintain the column order of the keys in the dictionary/dictionaries. This is presumably an optimization.It would be helpful if you could enforce maintaining the order from the dataframe with an argument.
The text was updated successfully, but these errors were encountered: