File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ def _stringify_floats_full_precision(obj: Any) -> Any:
120
120
if isinstance (obj , Series ):
121
121
return obj .map (_format_float_full_precision )
122
122
if isinstance (obj , DataFrame ):
123
- return obj .applymap (_format_float_full_precision )
123
+ # Apply element-wise via Series.map to avoid deprecated/removed applymap
124
+ return obj .apply (lambda s : s .map (_format_float_full_precision ))
124
125
if isinstance (obj , dict ):
125
126
return {k : _stringify_floats_full_precision (v ) for k , v in obj .items ()}
126
127
if isinstance (obj , list ):
@@ -130,6 +131,7 @@ def _stringify_floats_full_precision(obj: Any) -> Any:
130
131
# Scalars
131
132
return _format_float_full_precision (obj )
132
133
134
+
133
135
# interface to/from
134
136
@overload
135
137
def to_json (
You can’t perform that action at this time.
0 commit comments