Pandas notes

From DiLab
Revision as of 12:58, 25 October 2017 by Leo (talk | contribs) (New page: Using Python Pandas package for data analysis. Leo's notes. == Plot options == Define the colors of the plot data df.plot(color="rgbk") Different plot types (markers) df.plot(marker='...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Using Python Pandas package for data analysis. Leo's notes.

Plot options

Define the colors of the plot data

df.plot(color="rgbk")

Different plot types (markers)

df.plot(marker='.')

Limit the X axis values:

df.plot(xlim=(0,4000))

Placement of the legend (Below-left of the plot)

df.plot().legend(loc='upper left', bbox_to_anchor=(0, 0))