Spaces:
Sleeping
Sleeping
Muhammad Mustehson commited on
Commit ·
ca7adb9
1
Parent(s): 00c47cd
F-string Bug-2
Browse files- notebook.py +1 -1
notebook.py
CHANGED
|
@@ -72,7 +72,7 @@ class Notebook:
|
|
| 72 |
|
| 73 |
|
| 74 |
def _chart_code(self, chart_type, chart_data, chart_config):
|
| 75 |
-
df_code = f
|
| 76 |
chart_dispatch = {
|
| 77 |
"bar": f"""
|
| 78 |
fig = px.bar(df, x='x', y='y', title='{chart_config['title']}',
|
|
|
|
| 72 |
|
| 73 |
|
| 74 |
def _chart_code(self, chart_type, chart_data, chart_config):
|
| 75 |
+
df_code = f"df = pd.DataFrame({chart_data.get(chart_type).get('data')})"
|
| 76 |
chart_dispatch = {
|
| 77 |
"bar": f"""
|
| 78 |
fig = px.bar(df, x='x', y='y', title='{chart_config['title']}',
|