Spaces:
Sleeping
Sleeping
Update code_df_custom.py
Browse files- code_df_custom.py +1 -1
code_df_custom.py
CHANGED
@@ -16,7 +16,7 @@ def run_code(file, code):
|
|
16 |
exec(code, scope, scope)
|
17 |
except Exception as e:
|
18 |
scope['new_df'] = df
|
19 |
-
return scope['new_df'], e
|
20 |
|
21 |
# print(scope.keys())
|
22 |
if 'new_df' not in scope:
|
|
|
16 |
exec(code, scope, scope)
|
17 |
except Exception as e:
|
18 |
scope['new_df'] = df
|
19 |
+
return scope['new_df'], str(e)
|
20 |
|
21 |
# print(scope.keys())
|
22 |
if 'new_df' not in scope:
|