Skip to content

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