We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac21311 commit cfb886cCopy full SHA for cfb886c
pandas/_libs/writers.pyx
@@ -107,7 +107,7 @@ def convert_json_to_lines(arr: object) -> str:
107
if not in_quotes:
108
num_open_brackets_seen -= 1
109
110
- return narr.tostring().decode('utf-8')
+ return narr.tobytes().decode('utf-8')
111
112
113
# stata, pytables
pandas/io/sas/sas.pyx
@@ -436,7 +436,7 @@ cdef class Parser:
436
elif column_types[j] == column_type_string:
437
# string
438
string_chunk[js, current_row] = np.array(source[start:(
439
- start + lngt)]).tostring().rstrip(b"\x00 ")
+ start + lngt)]).tobytes().rstrip(b"\x00 ")
440
js += 1
441
442
self.current_row_on_page_index += 1
0 commit comments