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 having a numeric column in a dataframe, the default for sorting seems to be to have negative values sorted, then np.nan or none values, then positive values. I get this is default behavior in pandas, but it makes the dataframes a bit cumbersome to view when I have some columns with a lot of blank values but also negative and positive values (big gap between my populated data). However, I don't want to filter the entire row out, since other columns of that row do have valid values.
The update_sort you added allows for sorting by multiple columns with buttons, but doesn't change the underlying behavior of the sort.
Is there any way to add an argument, such as na_position=last, so that blank values can go to the end?
Here is a basic example to illustrate what I am asking:
When having a numeric column in a dataframe, the default for sorting seems to be to have negative values sorted, then np.nan or none values, then positive values. I get this is default behavior in pandas, but it makes the dataframes a bit cumbersome to view when I have some columns with a lot of blank values but also negative and positive values (big gap between my populated data). However, I don't want to filter the entire row out, since other columns of that row do have valid values.
The update_sort you added allows for sorting by multiple columns with buttons, but doesn't change the underlying behavior of the sort.
Is there any way to add an argument, such as na_position=last, so that blank values can go to the end?
Here is a basic example to illustrate what I am asking:
In this example, the sort will look like this:
However, ideally, I'd like the na_position=last option so the blanks would be at the end
The text was updated successfully, but these errors were encountered: