У меня есть 20 csv файлов временных рядов с 10 столбцами в каждом, для которых я пытаюсь построить графики временных рядов. Я пытаюсь найти способ автоматизации построения графиков для каждого столбца в каждом CSV
образец одного CSV-файла
date,agr1,agr2,agr3,agr4,agr5,agr6,agr7
01-19,10,10,01,25,52,6,37
02-19,12,15,06,27,54,67,4
В настоящее время я могу строить графики вручную
x=test.Date,
y=test['Agr1'],
name = "AGR",
line = dict(color = '#17BECF'),
opacity = 0.8)
trace_low = go.Scatter(
x=test.Date,
y=test['AGR2'],
name = "Agr2",
line = dict(color = '#17BECF'),
opacity = 0.8)
data = [trace_high,trace_low]
updatemenus = list([
dict(active=-1,
buttons=list([
dict(label = 'High',
method = 'update',
args = [{'visible': [True, False]},
{'title': 'High'}]),
dict(label = 'Low',
method = 'update',
args = [{'visible': [False,True]},
{'title': 'Low'}]),
dict(label = 'Both',
method = 'update',
args = [{'visible': [True, True]},
{'title': 'All'}]),
dict(label = 'Reset',
method = 'update',
args = [{'visible': [True, False, True, False]},
{'title': 'AGRs'}])
]),
)
])
layout = dict(title='All', showlegend=False,
updatemenus=updatemenus)
fig = dict(data=data, layout=layout)
py.iplot(fig, filename='update_dropdown')
Я хочу отдельную диаграмму для каждого файла