Plot#

property Series.plot: hvPlotTabularPolars[source]#

Create a plot namespace.

Warning

This functionality is currently considered unstable. It may be changed at any point without it being considered a breaking change.

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("values", [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")