1. 程式人生 > >Python中使用 pandas 來讀取csv資料

Python中使用 pandas 來讀取csv資料

import pandas as pd
daily_engagement = pd.read_csv('enrollments.csv')
len(daily_engagement['account_key'].unique())
    for i in range(len(countries)):
        country = countries[i]
        country_employment = employment[i]
        print 'Country {} has employment {}'.format(country,
                country_employment)