DEV Community

Cover image for Create Stunning Visualization in One Line of Code.
Thuwarakesh Murallie
Thuwarakesh Murallie

Posted on

Create Stunning Visualization in One Line of Code.

Pandas's plot API is a fantastic way to quickly create charts on our dataframes. By default, it creates Matplotlib charts in one line of code.

Yet, the defaults aren't the best.

We could turn the boring charts into beautiful visualizations. We only need to set the plotting backend to Plotly.

We aren't done yet.

Even if we set it to Plotly backend, Pandas doesn't let us create advanced charts such as surface plots. One more simple trick discussed will unlock it for you.

Let's create some terrific visualization.

Create Stunning Visualizations for Pandas Dataframes in One Line of Code

If you find this post interesting, please leave some claps on Medium as well because it helps this article reach more people.

Discussion (0)