Plot#

Polars does not implement plotting logic itself, but instead defers to hvplot. Please see the hvplot reference gallery for more information and documentation.

Examples#

Histogram:

s = pl.Series([1, 4, 2])
s.plot.hist()

KDE plot (note: in addition to hvplot, this one also requires scipy):

s.plot.kde()

For more info on what you can pass, you can use hvplot.help:

import hvplot
hvplot.help("hist")