pandas note
read_csv
import pandas as pd
pd.read_csv('<fileanme>', delimiter='<delimeter>', names=['col1', 'col2'])
unique
data['status'].unique()
return
array(['activated', 'running', 'closed', 'transferring', 'finished',
'holding'], dtype=object)
to_datetime
convert string/int(unix time) to datetime object
pd.to_datetime(data['time'], unit='s')
沒有留言:
張貼留言