1

I want to make a dataframe a json object.

For example,

function f():
    ...
    ...
    ...
    return dataframe.to_json(orient='records',force_ascii=False)

but to_json does not have encoding paramter like to_csv

How do I encode with utf-8 in the case of to_json?

thank you for reading.

su79eu7k
  • 7,031
  • 3
  • 34
  • 40
KiWiChoco
  • 53
  • 1
  • 5

0 Answers0