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
df
Out[149]:
user gender age \
0 Peter F 23.000000
1 M.A.R.Y F 27.333333
2 The King M 28.000000
3 Tim Tom M 28.000000
4 Mary F 29.000000
self_intro
0 Hello, my name is Peter. I am graduated from t...
1 I am Mary. I am from Maryland. I was born from...
2 I am King. The end.
3 Hi, I am Tim Tom. I love eating snakes. I am v...
4 ...
and the output has the column sorted alphabetically:
age gender self_intro \
0 29.000000 F ...
1 27.333334 F I am Mary. I am from Maryland. I was born from...
2 23.000000 F Hello, my name is Peter. I am graduated from t...
3 28.000000 M Hi, I am Tim Tom. I love eating snakes. I am v...
4 28.000000 M I am King. The end.
user
0 Mary
1 M.A.R.Y
2 Peter
3 Tim Tom
4 The King
...
AssertionError: DataFrame.columns are different
DataFrame.columns values are different (75.0 %)
[left]: Index(['user', 'gender', 'age', 'self_intro'], dtype='object')
[right]: Index(['age', 'gender', 'self_intro', 'user'], dtype='object')
The text was updated successfully, but these errors were encountered:
Just released a new version, 2.0.16, that should address this issue: any dataframes you upload then download should retain their original column order.
My dataframe has below data when printed:
I use below code to test:
and the output has the column sorted alphabetically:
The text was updated successfully, but these errors were encountered: