Esmaeilkiani's picture
Create utils.py
f9cb45b verified
raw
history blame contribute delete
187 Bytes
import pandas as pd
import plotly.express as px
def generate_report(data):
df = pd.DataFrame(data, columns=['Date', 'Data'])
fig = px.line(df, x='Date', y='Data')
return fig