Skip to content

Commit 8303af3

Browse files
DOC: fix SA01,ES01 for pandas.errors.CategoricalConversionWarning (pandas-dev#60011)
1 parent 6c1f95d commit 8303af3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
134134
-i "pandas.core.resample.Resampler.var SA01" \
135135
-i "pandas.errors.AttributeConflictWarning SA01" \
136136
-i "pandas.errors.CSSWarning SA01" \
137-
-i "pandas.errors.CategoricalConversionWarning SA01" \
138137
-i "pandas.errors.ChainedAssignmentError SA01" \
139138
-i "pandas.errors.DataError SA01" \
140139
-i "pandas.errors.DuplicateLabelError SA01" \

pandas/errors/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,15 @@ class CategoricalConversionWarning(Warning):
731731
"""
732732
Warning is raised when reading a partial labeled Stata file using a iterator.
733733
734+
This warning helps ensure data integrity and alerts users to potential issues
735+
during the incremental reading of Stata files with labeled data, allowing for
736+
additional checks and adjustments as necessary.
737+
738+
See Also
739+
--------
740+
read_stata : Read a Stata file into a DataFrame.
741+
Categorical : Represents a categorical variable in pandas.
742+
734743
Examples
735744
--------
736745
>>> from pandas.io.stata import StataReader

0 commit comments

Comments
 (0)