Skip to content

Instantly share code, notes, and snippets.

@dipanjanS
Created September 22, 2019 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dipanjanS/fd295bc19093ef52673b6cb71ef733e5 to your computer and use it in GitHub Desktop.
Save dipanjanS/fd295bc19093ef52673b6cb71ef733e5 to your computer and use it in GitHub Desktop.
items_popularity = pd.read_csv('datasets/item_popularity.csv',
encoding='utf-8')
items_popularity['popularity_scale_10'] = np.array(
np.round((items_popularity['pop_percent'] * 10)),
dtype='int')
items_popularity['popularity_scale_100'] = np.array(
np.round((items_popularity['pop_percent'] * 100)),
dtype='int')
items_popularity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment