Skip to content

Commit c5cfe5d

Browse files
DOC: fix SA01, ES01 for pandas.errors.EmptyDataError (#59872)
1 parent efbc296 commit c5cfe5d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
173173
-i "pandas.errors.ClosedFileError SA01" \
174174
-i "pandas.errors.DataError SA01" \
175175
-i "pandas.errors.DuplicateLabelError SA01" \
176-
-i "pandas.errors.EmptyDataError SA01" \
177176
-i "pandas.errors.IntCastingNaNError SA01" \
178177
-i "pandas.errors.InvalidIndexError SA01" \
179178
-i "pandas.errors.InvalidVersion SA01" \

pandas/errors/__init__.py

+11
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,17 @@ class EmptyDataError(ValueError):
205205
"""
206206
Exception raised in ``pd.read_csv`` when empty data or header is encountered.
207207
208+
This error is typically encountered when attempting to read an empty file or
209+
an invalid file where no data or headers are present.
210+
211+
See Also
212+
--------
213+
read_csv : Read a comma-separated values (CSV) file into DataFrame.
214+
errors.ParserError : Exception that is raised by an error encountered in parsing
215+
file contents.
216+
errors.DtypeWarning : Warning raised when reading different dtypes in a column
217+
from a file.
218+
208219
Examples
209220
--------
210221
>>> from io import StringIO

0 commit comments

Comments
 (0)