Closed
Description
Right now for all px
methods, data_frame
is a required argument and the values of many kwargs are column names as strings.
We should be much more flexible in what we accept, for example the following should work:
px.scatter(x=[1,2,3], y=[1,2,3])
In which case we would internally build a data frame with column names "x" and "y".
In addition, the following should work:
px.scatter(df, x=df.index, y=df.col)
In which case we can read the column names (and optionally index name?) from the data frame.
Finally, we should allow for mixing and matching:
px.scatter(df, x=df.index, y=df.col, color=[1,2,3])
Metadata
Metadata
Assignees
Labels
No labels