Standard deviation
You should now be familiar with the environmental dataset. However, until now you used a cleaned version of the dataset. The original dataset contained multiple outliers, which would have tainted the analysis.
You'll now work on visualizing these outliers by using the method you've just learned.
Diese Übung ist Teil des Kurses
Analyzing IoT Data in Python
Anleitung zur Übung
- Calculate the mean of the
"temperature"
column and assign it to a column indata
. - Calculate upper and lower limits and assign each to a separate column in
data
. - Plot
data
.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Calculate mean
data["mean"] = ____
# Calculate upper and lower limits
data["upper_limit"] = data[____] + (____ * ____)
data["lower_limit"] = ____
# Plot the DataFrame
____
plt.show()