It would be nice to have the possibility to plot expressions. Suppose I have a dataframe with three columns: col1, col2, col3. Now I can do:

df.plot.scatter(x='col1', y='col2')

it would be nice to be able to plot expressions directly:

df.plot.scatter(x='col1 ** 2', y = 'col2 / sqrt(col3)')

and also for other plotting methods (e.g. histograms)

Comment From: TomAugspurger

This is a duplicate of https://github.com/pydata/pandas/pull/12168, which we passed on at the time.

Since you are the second person to request it though, perhaps it's worth a second look. Feel free to post over there with additional use-cases / why this would be worth implementing 👍

Comment From: wiso

I am coming from ROOT where this feature is very common with TTree::Draw. In physics this is very common. Suppose I have a three columns with the position of a point ('x', 'y', 'z') and one with the the time, I want to plot the distance from the origin:

df.plot.scatter(x='time', y='sqrt(x**2 + y**2 + z**2)')