hi @mike_finko
welcome to the community.
Unfortunately, this is not something we plan to offer within Plotly.js because we want Plotly.js to maintain the display role. We want Plotly.js to focus on displaying data visualization and not play the role of analysis.
That said, you can replicate some of these functions using the px.histogram
.
Or you can do the aggregations in Pandas. For example:
import plotly.io as pio
import pandas as pd
subject = ['Moe','Larry','Curly','Moe','Larry','Curly','Moe','Larry','Curly','Moe','Larry','Curly']
score = [1,6,2,8,2,9,4,5,1,5,2,8]
df = pd.DataFrame(
{
'subject': subject,
'score': score
}
)
grouped_data = df.groupby('subject', sort=False).sum()
data = [dict(
type = 'scatter',
x = grouped_data.index,
y = grouped_data.score,
mode = 'markers',
)]
fig_dict = dict(data=data)
pio.show(fig_dict, validate=False)