Facebook
From Kadir Çallıoğlu, 1 Month ago, written in Python.
Embed
Download Paste or View Raw
Hits: 147
  1. import pandas as pd
  2.  
  3. # Specify the columns to optimze
  4. columns_to_load = ['country', 'daily_vaccinations']
  5.  
  6. # Read the CSV file
  7. df = pd.read_csv('/Users/ComputerX/Downloads/country_vaccination_stats.csv', usecols=columns_to_load)
  8.  
  9. print(df.groupby('country')['daily_vaccinations'].median().sort_values(ascending=False).head(3))

Replies to 6 rss

Title Name Language When
Re: 6 Kadir Çallıoğlu python 1 Month ago.