Replies: 1 comment 4 replies
-
Yes, you can use Here is an example of how you might use import json
import pandas as pd
from llama_index.readers.json.base import JSONReader
# Example JSON content
json_content = """
{
"items": [
{
"Column1": "Value1",
"Column2": "Value2"
},
{
"Column1": "Value3",
"Column2": "Value4"
}
]
}
"""
# Load JSON content
data = json.loads(json_content)
# Convert JSON to DataFrame
df = pd.DataFrame(data["items"])
# Initialize the JSONReader
json_reader = JSONReader()
# Print the DataFrame
print(df) This code will parse the JSON content, extract the data, and convert it into a pandas DataFrame using the |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am referring link below. Is that possible to parse the entire JSON and create pandas data frame? thoughts?
https://docs.llamaindex.ai/en/stable/examples/query_engine/JSONalyze_query_engine/
Beta Was this translation helpful? Give feedback.
All reactions