I have a pandas data frame with a column that has a lot of categories within it. I need to create a list containing the name of each category within that column. I can create the list, but because the column has 287 categories, python will only print an abbreviated version of the list. How do I get python to return/print the full list?
y = season_data['Period Name'].value_counts()
period_name_list = (y.index)
print(period_name_list)
This is what I get when I input the print() function.
Index(['Special Teams', 'Session', 'Team 1', 'Team 4', 'Team 3', 'Team 2', 'Team 6', 'Team 5', 'Flex', 'Indy',
...
'SPECIAL TEAM 1', 'Q3 P 4', 'Q3 OD 10', 'Q3 PR 7', 'Quarter 26','Q3 OD 11', 'TEAMS 2', 'Q3 DD 12', 'Special teams 3', 'Q3 DD 13'],
dtype='object', length=287)
How do I print the full list? I am using jupyter Notebook, also if I could display the output as an HTML file to open in browser that would help to.