Skip to content

Instantly share code, notes, and snippets.

@GeorgeSeif
Last active October 11, 2019 11:18
Show Gist options
  • Select an option

  • Save GeorgeSeif/730a12b1e41b7f878fc3458681ab6890 to your computer and use it in GitHub Desktop.

Select an option

Save GeorgeSeif/730a12b1e41b7f878fc3458681ab6890 to your computer and use it in GitHub Desktop.
df = df.T
print(df)
"""
0 1 2 3 4 5 6 7 8 9 10 11
Player Superman Batman Thanos Batman Thanos Superman Batman Thanos Black Widow Batman Thanos Superman
Year 2000 2000 2000 2001 2001 2002 2002 2002 2003 2004 2004 2005
Points 23 43 45 65 76 34 23 78 89 76 92 87
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment