Created
April 23, 2020 19:36
-
-
Save curiousily/169837d4e9d67b11df2a8c362e5a6d94 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
column_names = [ | |
'user_id', | |
'activity', | |
'timestamp', | |
'x_axis', | |
'y_axis', | |
'z_axis' | |
] | |
df = pd.read_csv( | |
'WISDM_ar_v1.1/WISDM_ar_v1.1_raw.txt', | |
header=None, | |
names=column_names | |
) | |
df.z_axis.replace(regex=True, inplace=True, to_replace=r';', value=r'') | |
df['z_axis'] = df.z_axis.astype(np.float64) | |
df.dropna(axis=0, how='any', inplace=True) | |
df.shape |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment