File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def dataframe_to_grid(dataframe, options={}):
76
76
if options .get (col_name ):
77
77
headers [col_name ].update (options .get (col_name ))
78
78
79
- return list (headers .values ()), dataframe .applymap (cast_to_serializable ).to_dict (
79
+ return list (headers .values ()), dataframe .map (cast_to_serializable ).to_dict (
80
80
orient = "records"
81
81
)
82
82
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ def dataframe_to_grid(dataframe, options={}):
89
89
if options.get(col_name):
90
90
headers[col_name].update(options.get(col_name))
91
91
92
- return list(headers.values()), dataframe.applymap (cast_to_serializable).to_dict(
92
+ return list(headers.values()), dataframe.map (cast_to_serializable).to_dict(
93
93
orient="records"
94
94
)
95
95
Original file line number Diff line number Diff line change @@ -71,6 +71,6 @@ def dataframe_to_grid(dataframe, options={}):
71
71
if options .get (col_name ):
72
72
headers [col_name ].update (options .get (col_name ))
73
73
74
- return list (headers .values ()), dataframe .applymap (cast_to_serializable ).to_dict (
74
+ return list (headers .values ()), dataframe .map (cast_to_serializable ).to_dict (
75
75
orient = "records"
76
76
)
Original file line number Diff line number Diff line change @@ -84,6 +84,6 @@ def dataframe_to_grid(dataframe, options={}):
84
84
if options .get (col_name ):
85
85
headers [col_name ].update (options .get (col_name ))
86
86
87
- return list (headers .values ()), dataframe .applymap (cast_to_serializable ).to_dict (
87
+ return list (headers .values ()), dataframe .map (cast_to_serializable ).to_dict (
88
88
orient = "records"
89
89
)
You can’t perform that action at this time.
0 commit comments