File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def create_chart(
135135 self ,
136136 title : str = "New Chart" ,
137137 chart_type : str = "d3-bars-stacked" ,
138- data : Union [ pd .DataFrame , None ] = None ,
138+ data : pd .DataFrame | str | None = None ,
139139 folder_id : str = "" ,
140140 organization_id : str = "" ,
141141 metadata : Optional [Dict [Any , Any ]] = None ,
@@ -153,7 +153,7 @@ def create_chart(
153153 chart_type : str, optional
154154 Chart type to be created. See https://developer.datawrapper.de/docs/chart-types, by default "d3-bars-stacked"
155155 data : [type], optional
156- A pandas DataFrame containing the data to be added, by default None
156+ A pandas DataFrame or string containing the data to be added, by default None
157157 folder_id : str, optional
158158 ID of folder in Datawrapper.de for the chart, table or map to be created in, by default ""
159159 organization_id : str, optional
You can’t perform that action at this time.
0 commit comments