Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - read_json() #23

Open
amhsirak opened this issue Oct 1, 2022 · 4 comments
Open

Feature - read_json() #23

amhsirak opened this issue Oct 1, 2022 · 4 comments
Assignees
Labels
For: Contribution Open for contributions Type: Enhancement New feature or request Type: Good First Issue Good for newcomers

Comments

@amhsirak
Copy link
Owner

amhsirak commented Oct 1, 2022

Read JSON files in ickle dataframes.
User must be able to import a file with json extension and read it in dataframe.

@amhsirak amhsirak added Type: Enhancement New feature or request Type: Good First Issue Good for newcomers For: Contribution Open for contributions labels Oct 1, 2022
@tharun634
Copy link

Hello, I am interested in this issue.

Can you give me a JSON file / Python dictionary example of an input to read_json(). Because, I see that the __init__ takes a dict as well, so I just wanted to understand how read_json() will be different from __init__

@amhsirak
Copy link
Owner Author

amhsirak commented Oct 1, 2022

@tharun634 Hello. You are right - for dictionaries we simply create a dataframe and print it. We don't need to handle it in read_json() method.
Our primary focus is JSON file - user must be able to import a file with json extension and read it in dataframe.
Sample JSON file - http://jsonblob.com/1025743492709892096

@tharun634
Copy link

Thanks for the response.

So, looking from the JSON blob that you shared. Will there be an array of such JSON objects in the json file? such as this? Where each JSON Object in the array corresponds to a row in the dataframe

@amhsirak
Copy link
Owner Author

amhsirak commented Oct 1, 2022

@tharun634 Yes - possible. We can first go with a simple JSON files and then dig deeper.
Also checkout json package in built in Python. Can be of help 😄 https://docs.python.org/3/library/json.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For: Contribution Open for contributions Type: Enhancement New feature or request Type: Good First Issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants