I am trying to register a "plotly.PlotlyDataSet" t...
# questions
e
I am trying to register a "plotly.PlotlyDataSet" type in the catalog and get this error:
Copy code
DatasetError: Failed while saving data to data set
PlotlyDataSet(filepath=C:/Users/eromero/Documents/Proyectos_bilbomatica_altia/0020004_Soporte_Analitica_Avanzada_e_Inte
ligencia_Artificial_dedalo_altia/componentes-IA-Altia-git/kedro/queres/data/08_reporting/plotly_express_reclamaciones_p
or_fecha.json, load_args={}, plotly_args={'fig': {'orientation': h, 'x': fecha, 'y': numero}, 'type': line},
protocol=file, save_args={}).
Value of 'x' is not the name of a column in 'data_frame'. Expected one of [0] but received: fecha
r
Hi this is because plotly.PlotlyDataSet expects a dataframe not a figure. It creates the figure under the hood so it's not really done in the node, the node should just return a df. Maybe you should switch to using plotly.JSONDataSet in which the expected return type is a plotly figure. See the difference here in the docs - https://docs.kedro.org/en/stable/visualisation/visualise_charts_with_plotly.html
馃憤馃徑 1
e
ok, it works now!! I read that documentations before but i understood bad. thanks a lot 馃檪