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
When converting from a DataFrames.DataFrame, the order of the columns is not preserved. Instead, the columns are sorted in alphabetical order. Is this intentional?
using DataFrames
import Pandas
df = DataFrame(C = 1:4, A = 5:8, B = 9:12)
pdf = Pandas.DataFrame(df)
It's probably not intentional, and isn't even always in alphabetical order. It's because Dicts in Julia do not guarantee any order (OrderedDicts do, and possibly a better way to do that, as it's not in the standard library):
When converting from a DataFrames.DataFrame, the order of the columns is not preserved. Instead, the columns are sorted in alphabetical order. Is this intentional?
The text was updated successfully, but these errors were encountered: