We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's say I have a huge jsonlines file and I want to read only the first n lines of the file.
jsonlines
n
This problem could be fixed by adding nrows parameter in method pd.read_json. This parameter should be applicable if and only if lines=True
nrows
pd.read_json
lines=True
Simply add and implement nrows parameter in pd.read_json (like pd.read_csv).
pd.read_csv
How this enhancement could work:
import pandas as pd df = pd.read_json('/path/to/file.jsonlines', lines=True, nrows=1000)
The text was updated successfully, but these errors were encountered:
Hi @sp1thas , I checked the code and I feel, I should be able to implement this feature.
Sorry, something went wrong.
ENH Add nrow parameter for line delimited json for read_json pandas-d…
15d1d1e
…ev#33916
ENH solve linting via black8 for Add nrow parameter for line delimite…
569db1c
…d json for read_json pandas-dev#33916
fc4993f
hasnain2808
Successfully merging a pull request may close this issue.
Is your feature request related to a problem?
Let's say I have a huge
jsonlines
file and I want to read only the firstn
lines of the file.Describe the solution you'd like
This problem could be fixed by adding
nrows
parameter in methodpd.read_json
. This parameter should be applicable if and only iflines=True
API breaking implications
Simply add and implement
nrows
parameter inpd.read_json
(likepd.read_csv
).Additional context
How this enhancement could work:
The text was updated successfully, but these errors were encountered: