Skip to content

Commit

Permalink
Merge pull request #15 from kmarchais/fix/applymap-warning
Browse files Browse the repository at this point in the history
Fix: Replace applymap with map for dataframe serialization
  • Loading branch information
jourdain authored Jan 23, 2025
2 parents 39354d7 + ac30ba3 commit 36bf71f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion trame_vuetify/widgets/vuetify.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def dataframe_to_grid(dataframe, options={}):
if options.get(col_name):
headers[col_name].update(options.get(col_name))

return list(headers.values()), dataframe.applymap(cast_to_serializable).to_dict(
return list(headers.values()), dataframe.map(cast_to_serializable).to_dict(
orient="records"
)

Expand Down
2 changes: 1 addition & 1 deletion trame_vuetify/widgets/vuetify3.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def dataframe_to_grid(dataframe, options={}):
if options.get(col_name):
headers[col_name].update(options.get(col_name))

return list(headers.values()), dataframe.applymap(cast_to_serializable).to_dict(
return list(headers.values()), dataframe.map(cast_to_serializable).to_dict(
orient="records"
)

Expand Down
2 changes: 1 addition & 1 deletion vue2/.header.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ def dataframe_to_grid(dataframe, options={}):
if options.get(col_name):
headers[col_name].update(options.get(col_name))

return list(headers.values()), dataframe.applymap(cast_to_serializable).to_dict(
return list(headers.values()), dataframe.map(cast_to_serializable).to_dict(
orient="records"
)
2 changes: 1 addition & 1 deletion vue3/.header.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ def dataframe_to_grid(dataframe, options={}):
if options.get(col_name):
headers[col_name].update(options.get(col_name))

return list(headers.values()), dataframe.applymap(cast_to_serializable).to_dict(
return list(headers.values()), dataframe.map(cast_to_serializable).to_dict(
orient="records"
)

0 comments on commit 36bf71f

Please sign in to comment.