Skip to Content
Hands-On Industrial Internet of Things
book

Hands-On Industrial Internet of Things

by Giacomo Veneri, Antonio Capasso
November 2018
Intermediate to advanced
556 pages
14h 42m
English
Packt Publishing
Content preview from Hands-On Industrial Internet of Things

Step 2 – exploratory data analysis (EDA)

The dataset is good so we don't need to clean the data. If we analyze the standard deviation of some variables, however, we can see that set_3, sensor_1, sensor_5, sensor_10, sensor_16, sensor_18, and sensor_19 have a standard deviation of zero, so we can remove them.

The following code performs the standard deviation analysis:

# analysis of variancepd.set_option('display.max_columns', None)pd.set_option('display.max_rows', None)df_std = df.groupby('unitid').std()print(df_std==0)

We can use the df.describe() function instead of df.std() to see the other statistics.

Then, we can remove the aforementioned variables, as follows:

# removing data that is not usefuldf=df.drop(['set_3', 'sensor_1', 'sensor_5', ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Internet of Things

Internet of Things

S. Velliangiri, Sathish A.P. Kumar, P. Karthikeyan
Industrial Internet Application Development

Industrial Internet Application Development

Alena Traukina, Jayant Thomas, Prashant Tyagi, Veera Kishore Reddipalli

Publisher Resources

ISBN: 9781789537222Supplemental Content