You are referrring to a multi-index dataframe, the green tick column is index. You can use .reset_index()
to get them as a column named "index" and later rename it, or use rename_axis(index=['red_ticks', 'green_ticks'])
or whatever name you like.
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.