Spaces:
Sleeping
Sleeping
Delete run_viz_code.py
Browse files- run_viz_code.py +0 -19
run_viz_code.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
| 1 |
-
# run_viz_code.py
|
| 2 |
-
import matplotlib.pyplot as plt
|
| 3 |
-
import seaborn as sns
|
| 4 |
-
import pandas as pd
|
| 5 |
-
|
| 6 |
-
def run_visualizations(df, visual_plan):
|
| 7 |
-
globals_dict = {
|
| 8 |
-
"df": df,
|
| 9 |
-
"sns": sns,
|
| 10 |
-
"plt": plt,
|
| 11 |
-
"pd": pd
|
| 12 |
-
}
|
| 13 |
-
|
| 14 |
-
for viz in visual_plan:
|
| 15 |
-
print(f"{viz['title']}: {viz['description']}")
|
| 16 |
-
try:
|
| 17 |
-
exec(viz["code"], globals_dict)
|
| 18 |
-
except Exception as e:
|
| 19 |
-
print(f"Failed to run code: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|