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

DOC: fix SA01, ES01 for pandas.errors.EmptyDataError #59872

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.errors.ClosedFileError SA01" \
-i "pandas.errors.DataError SA01" \
-i "pandas.errors.DuplicateLabelError SA01" \
-i "pandas.errors.EmptyDataError SA01" \
-i "pandas.errors.IntCastingNaNError SA01" \
-i "pandas.errors.InvalidIndexError SA01" \
-i "pandas.errors.InvalidVersion SA01" \
Expand Down
11 changes: 11 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,17 @@ class EmptyDataError(ValueError):
"""
Exception raised in ``pd.read_csv`` when empty data or header is encountered.

This error is typically encountered when attempting to read an empty file or
an invalid file where no data or headers are present.

See Also
--------
read_csv : Read a comma-separated values (CSV) file into DataFrame.
errors.ParserError : Exception that is raised by an error encountered in parsing
file contents.
errors.DtypeWarning : Warning raised when reading different dtypes in a column
from a file.

Examples
--------
>>> from io import StringIO
Expand Down
Loading