Skip to content

Instantly share code, notes, and snippets.

@ricgu8086
Created June 27, 2022 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ricgu8086/2e95a0f5c7a59662993e492d0451b48a to your computer and use it in GitHub Desktop.
Save ricgu8086/2e95a0f5c7a59662993e492d0451b48a to your computer and use it in GitHub Desktop.
pivot.columns
MultiIndex([('mean', 'is_suitable'),
('size', 'is_suitable')],
)
pivot.columns.map('_'.join)
Index(['mean_is_suitable', 'size_is_suitable'], dtype='object')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment