Load JSON String into Pandas DataFrame Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report Let us see how can we use a dataset in JSON format in our Pandas DataFrame. This can be done using the built-in read_json() function. It enables us to read the JSON in a Pandas DataFrame. Example : Consider the JSON file path_to_json.json : path_to_json.json # importing the module import pandas # reading the file data = df.read_json("path_to_json.json") # displaying the DataFrame print(data) Output : Now, the final data frame also depends on the type of the JSON file. So there are mainly 3 types of orientations in JSON : Index Oriented Value-Oriented Column Oriented 1. Index Oriented This is an example of an Index Oriented JSON file. # importing the module import pandas # reading the file data = df.read_json("sample.json") # displaying the DataFrame print(data) Output : 2. Value-Oriented This is an example of a Value-Oriented JSON file. # importing the module import pandas # reading the file data = df.read_json("sample.json") # displaying the DataFrame print(data) Output : 3. Column Oriented This is an example of a Column-oriented JSON file. # importing the module import pandas # reading the file data = df.read_json("sample.json") # displaying the DataFrame print(data) Output : Don't miss your chance to ride the wave of the data revolution! Every industry is scaling new heights by tapping into the power of data. Sharpen your skills, become a part of the hottest trend in the 21st century.Dive into the future of technology - explore the Complete Machine Learning and Data Science Program by GeeksforGeeks and stay ahead of the curve. Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore. Last Updated : 18 Aug, 2020 Like Article Save Article Previous Add multiple columns to dataframe in Pandas Next How to display most frequent value in a Pandas series? Share your thoughts in the comments Add Your Comment Please Login to comment... Similar Reads Python - Difference Between json.load() and json.loads() How to load a TSV file into a Pandas DataFrame? How to convert pandas DataFrame into JSON in Python? Convert given Pandas series into a dataframe with its index as another column on the dataframe Exporting Pandas DataFrame to JSON File Split a String into columns using regex in pandas DataFrame json.load() in Python Difference Between Spark DataFrame and Pandas DataFrame Pandas Dataframe.to_numpy() - Convert dataframe to Numpy array How to Convert Wide Dataframe to Tidy Dataframe with Pandas stack()? Complete Tutorials Python API Tutorial: Getting Started with APIs Advanced Python Tutorials Python Automation Tutorial OpenAI Python API - Complete Guide Pandas AI: The Generative AI Python Library Like ayushmankumar7 Follow Article Tags : Python pandas-dataFrame Python Pandas-exercise Python-pandas Python Practice Tags : python Additional Information Vote for difficulty : Easy Normal Medium Hard Expert