Skip to content

Commit ccdf77f

Browse files
authored
fix(serializer): user apply instead of applymap (#1704)
1 parent 98bfafa commit ccdf77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandasai/helpers/dataframe_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ def truncate_value(value):
5353
return f"{value[: cls.MAX_COLUMN_TEXT_LENGTH]}…"
5454
return value
5555

56-
return df.applymap(truncate_value)
56+
return df.apply(lambda row: row.apply(truncate_value), axis=1)

0 commit comments

Comments
 (0)