We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ced45b commit 6642231Copy full SHA for 6642231
.changeset/itchy-ducks-breathe.md
@@ -0,0 +1,5 @@
1
+---
2
+'@e2b/code-interpreter-template': patch
3
4
+
5
+Fix timestamp issue
template/startup_scripts/0002_data.py
@@ -20,7 +20,13 @@ def _figure_repr_e2b_chart_(self: Figure):
20
21
22
def _dataframe_repr_e2b_data_(self: pandas.DataFrame):
23
- return orjson.loads(orjson.dumps(self.to_dict(orient="list")))
+ result = self.to_dict(orient="list")
24
+ for key, value in result.items():
25
+ # Check each column's values
26
+ result[key] = [
27
+ v.isoformat() if isinstance(v, pandas.Timestamp) else v for v in value
28
+ ]
29
+ return result
30
31
32
class E2BDataFormatter(BaseFormatter):
0 commit comments