We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9572a2e commit 69ffb01Copy full SHA for 69ffb01
pandas/_libs/writers.pyx
@@ -112,7 +112,7 @@ def convert_json_to_lines(arr: object) -> str:
112
if not in_quotes:
113
num_open_brackets_seen -= 1
114
115
- return narr.tostring().decode('utf-8')
+ return narr.tobytes().decode('utf-8')
116
117
118
# stata, pytables
pandas/io/sas/sas.pyx
@@ -431,7 +431,7 @@ cdef class Parser:
431
elif column_types[j] == column_type_string:
432
# string
433
string_chunk[js, current_row] = np.array(source[start:(
434
- start + lngt)]).tostring().rstrip(b"\x00 ")
+ start + lngt)]).tobytes().rstrip(b"\x00 ")
435
js += 1
436
437
self.current_row_on_page_index += 1
0 commit comments