-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathstats.py
More file actions
17 lines (13 loc) · 705 Bytes
/
stats.py
File metadata and controls
17 lines (13 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import pandas as pd
tag_df = pd.read_csv('data/26122013_223310_cam.tag',
delimiter=':',
skiprows=19,
index_col = 0,
skipfooter=1,
engine='python',
names=['frameID', 'blinkID', 'NF', 'LE_FC', 'LE_NV', 'RE_FC', 'RE_NV', 'F_X', 'F_Y', 'F_W',
'F_H', 'LE_LX', 'LE_LY', 'LE_RX', 'LE_RY', 'RE_LX', 'RE_LY', 'RE_RX', 'RE_RY' ])
txt_df = pd.read_csv('data/26122013_223310_cam.txt', delimiter=' ', index_col=0, header=None, names=['frameID', 'time'])
df = pd.merge(txt_df, tag_df, how='inner',on='frameID')
print(df.head(20))
#print(df[df.blinkID!=-1].head(20))