Difference between revisions of "Pandas notes"

From DiLab
Jump to: navigation, search
(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='...)
(No difference)

Revision as of 11:58, 25 October 2017

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))