Skip to content

Commit

Permalink
Correcting " bug for to_csv (#805)
Browse files Browse the repository at this point in the history
* Correcting " bug for to_csv

* Update _io.py

* Update _io.py
  • Loading branch information
oualib authored Nov 1, 2023
1 parent b017d2d commit d7b2995
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion verticapy/core/vdataframe/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ def to_csv(
tmp_row = []
for item in row:
if isinstance(item, str):
tmp_row += [quotechar + item + quotechar]
tmp_row += [
quotechar
+ item.replace(quotechar, quotechar * 2)
+ quotechar
]
elif isinstance(item, NoneType):
tmp_row += ["" if isinstance(na_rep, NoneType) else na_rep]
else:
Expand Down

0 comments on commit d7b2995

Please sign in to comment.