Based on following link : Streamplit displot
i have experimented my own example on regression dataset , code is here :
import streamlit as st
import pandas as pd
import plotly.figure_factory as ff
data =pd.read_csv("https://raw.githubusercontent.com/krishnaik06/Multiple-Linear-Regression/master/50_Startups.csv")
print(data.head())
print(data.shape)
hist_data =[data['R&D Spend'].values,data['Administration'].values,data['Marketing Spend'].values,data['Profit'].values]
groups =["R&D spend","Administration","Marketing Spend","Profit"]
fig =ff.create_distplot(hist_data=hist_data,group_labels=groups,bin_size=[0.1,0.25,0.5,0.75])
st.plotly_chart(fig,use_container_width=True)
shape returns (50,5) , so it is very small dataset, but when i am running code, it takes too long and returns folloing error :
could you please tell me how to fix it?