Skip to content

Instantly share code, notes, and snippets.

@ericness
Created August 17, 2018 21:36
Show Gist options
  • Save ericness/75ae7471e34551c159d67cdba22c4fcf to your computer and use it in GitHub Desktop.
Save ericness/75ae7471e34551c159d67cdba22c4fcf to your computer and use it in GitHub Desktop.
Displays the results of running from_product on two short lists
import pandas as pd
basic_index = pd.MultiIndex.from_product([[1, 2, 3], ['a', 'b', 'c']])
print(basic_index.values)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment