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:
120120 if isinstance (obj , Series ):
121121 return obj .map (_format_float_full_precision )
122122 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 ))
124125 if isinstance (obj , dict ):
125126 return {k : _stringify_floats_full_precision (v ) for k , v in obj .items ()}
126127 if isinstance (obj , list ):
@@ -130,6 +131,7 @@ def _stringify_floats_full_precision(obj: Any) -> Any:
130131 # Scalars
131132 return _format_float_full_precision (obj )
132133
134+
133135# interface to/from
134136@overload
135137def to_json (
You can’t perform that action at this time.
0 commit comments