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

ENH: Add a new parameter to pandas.read_csv #61172 #61197

Closed
wants to merge 3 commits into from

Conversation

BahramF73
Copy link

Notes:

I tried to fix this issue by adding a new parameter named return_empty for pandas.read_csv which is by default False and will return an empty DataFrame if set to True.

I am not familiar with Tests and didn't test it but should not break anythings.

@mroeschke
Copy link
Member

Thanks for the PR, but as discussed in #61172 (comment) there probably isn't much appetite for this feature so closing this PR as won't implement

@mroeschke mroeschke closed this Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: pd.read_csv() on empty files should give an empty dataframe pd.DataFrame()
2 participants