Skip to content

Instantly share code, notes, and snippets.

@abevieiramota
Created March 18, 2019 18:01
Show Gist options
  • Save abevieiramota/73bce8104db5e8120d7c1f3941c1f376 to your computer and use it in GitHub Desktop.
Save abevieiramota/73bce8104db5e8120d7c1f3941c1f376 to your computer and use it in GitHub Desktop.
df = pd.DataFrame({'category': {2829: 'Building',
7313: 'Airport',
2534: 'SportsTeam',
4146: 'Building',
2125: 'Food',
7977: 'City',
8312: 'City',
4801: 'Food',
723: 'Building',
628: 'ComicsCharacter'},
'eid': {2829: 'Id44',
7313: 'Id20',
2534: 'Id121',
4146: 'Id102',
2125: 'Id22',
7977: 'Id166',
8312: 'Id501',
4801: 'Id47',
723: 'Id82',
628: 'Id85'},
'ntriples': {2829: 2,
7313: 2,
2534: 2,
4146: 4,
2125: 2,
7977: 1,
8312: 3,
4801: 5,
723: 1,
628: 1}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment