Created
October 11, 2019 11:04
-
-
Save GeorgeSeif/9190f115442be811f8dfb415045eafd8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
players_data = {'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]} | |
df = pd.DataFrame(players_data) | |
print(df) | |
""" | |
Player Year Points | |
0 Superman 2000 23 | |
1 Batman 2000 43 | |
2 Thanos 2000 45 | |
3 Batman 2001 65 | |
4 Thanos 2001 76 | |
5 Superman 2002 34 | |
6 Batman 2002 23 | |
7 Thanos 2002 78 | |
8 Black Widow 2003 89 | |
9 Batman 2004 76 | |
10 Thanos 2004 92 | |
11 Superman 2005 87 | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment