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

pd.read_json not supported #150

Closed
dorisjlee opened this issue Nov 19, 2020 · 0 comments
Closed

pd.read_json not supported #150

dorisjlee opened this issue Nov 19, 2020 · 0 comments
Assignees
Labels
bug Something isn't working priority high priority tasks (for dev)

Comments

@dorisjlee
Copy link
Member

Unlike pd.read_csv, when we do pd.read_json, the dataframe is read in as a pandas dataframe instead of a lux dataframe. One possible difference is because read_csv is part of pd.io.parsers, whereas read_json is part of pd.io.json. This bug is part of the larger effort for ensuring pandas API coverage. We do not currently have a set of test for different file inputs, i.e., read_* functions in Pandas.

import lux
import pandas as pd
df = pd.read_json('{"key_1":{"item_1":1,"item_2":2,"item_3":3},"key_2":{"item_1":"x","item_2":"y","item_3":"z"}}')
type(df)

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority high priority tasks (for dev)
Projects
None yet
Development

No branches or pull requests

2 participants