Spaces:
Sleeping
Sleeping
File size: 522 Bytes
e4339b3 | 1 2 3 4 5 6 7 8 9 10 11 12 | import pandas as pd
import plotly.graph_objects as go
from plotly.subplots import make_subplots
df = pd.read_csv('Leads/Leads.csv')
sel = ['Lead Number', 'Converted', 'TotalVisits', 'Total Time Spent on Website', 'Page Views Per Visit', 'Asymmetrique Activity Score']
fig = make_subplots(rows=2, cols=3, subplot_titles=sel)
for i, col in enumerate(sel):
r, c = divmod(i, 3)
fig.add_trace(go.Histogram(x=df[col].dropna(), name=col, marker_color='#2d6a9f', nbinsx=30), row=r+1, col=c+1)
fig.write_html('test.html')
|