Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # get the top named entities
- top_entities = (entity_frame.groupby(by=['Entity Name', 'Entity Type'])
- .size()
- .sort_values(ascending=False)
- .reset_index().rename(columns={0 : 'Frequency'}))
- top_entities.T.iloc[:,:15]
Add Comment
Please, Sign In to add comment