Pandas to json, The to_json()method converts the DataFrame to a JSON