Exercise

Line plots

Plotting the series is an important step in the analysis process since it gives you an overview of how the data actually looks and allows us to identify trends and patterns easily.

You'll be plotting some line graphs using pandas .plot() method now.

pandas as pd and matplotlib.pyplot as plt have been imported for you.

Instructions 1/2

undefined XP
  • 1

    Create a line-plot from df for the columns cols, setting the title as "Environmental data". Label the X-Axis as "Time".

  • 2

    Create the same plot again, but this time move "pressure" to the secondary Y-Axis.