為什么這里:# 2061年?我們真的有這一年的數(shù)據(jù)?創(chuàng)建一個函數(shù)并用它去修復(fù)這個bug
def fix_century(x):
year = x.year - 100 if x.year > 1989 else x.year
return datetime.date(year, x.month, x.day)
data['Yr_Mo_Dy'] = data['Yr_Mo_Dy'].apply(fix_century)
data.head()
是要>1989,到底phase_date的合成機制是怎么樣?
求大佬指點,感謝
Pandas數(shù)據(jù)分析練習6練習6-統(tǒng)計 探索風速數(shù)據(jù) 步驟1 導(dǎo)入必要的庫 運行以下代碼 import pandas as pd import datetime 步驟2 從以下地址導(dǎo)入數(shù)據(jù) 運行以下代...