def thunder():
if os.path.exists('../dataset/thunder.pkl'):
return pd.read_pickle('../dataset/thunder.pkl')
thunder_df = pd.read_csv('../input/thunder.csv',
names=[
'datetime', # ????
'lat', # ??(10??)
'lon', # ??(10??)
'type' # ???, CG: ???, IC: ???
])
# ?????????
thunder_df.datetime = pd.to_datetime(thunder_df.datetime)
# observation_point_df.to_pickle('../dataset/observation_point.pkl')
thunder_df = pd.concat([thunder_df, pd.get_dummies(thunder_df.type)], axis=1)
thunder_df.to_pickle('../dataset/thunder_df.pkl')
return thunder_df
评论列表
文章目录