Advertisement
elena1234

get most frequent locations in Python

Oct 24th, 2022 (edited)
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | Source Code | 0 0
  1. # get top 10 most frequent locations
  2. n = 15
  3. most_frequent_location = df_jobs['Location'].value_counts()[:n].index.tolist()
  4. most_frequent_location
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement