File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def create_chart(
135
135
self ,
136
136
title : str = "New Chart" ,
137
137
chart_type : str = "d3-bars-stacked" ,
138
- data : Union [ pd .DataFrame , None ] = None ,
138
+ data : pd .DataFrame | str | None = None ,
139
139
folder_id : str = "" ,
140
140
organization_id : str = "" ,
141
141
metadata : Optional [Dict [Any , Any ]] = None ,
@@ -153,7 +153,7 @@ def create_chart(
153
153
chart_type : str, optional
154
154
Chart type to be created. See https://developer.datawrapper.de/docs/chart-types, by default "d3-bars-stacked"
155
155
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
157
157
folder_id : str, optional
158
158
ID of folder in Datawrapper.de for the chart, table or map to be created in, by default ""
159
159
organization_id : str, optional
You can’t perform that action at this time.
0 commit comments