Quiz on Reading and Writing JSON Files with Pandas



1. What function is used to read a JSON file into a DataFrame?
2. Which method is used to write a DataFrame to a JSON file?
3. What parameter would you use to specify the orientation of the JSON when writing it?
4. Which of the following orientations is NOT available for JSON output?
5. True or False: You can read a JSON string directly into a DataFrame using pd.read_json().

Advertisements