I currently am able to get a list of all the column names in my dataframe using:
df_EVENT5.columns.get_values()
But I want the list to be in alphabetical order ... how do I do that?
为了获得按字母顺序排列的列名列表,请尝试:
df_EVENT5.columns.sort_values().values
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.