Skip to content

Commit

Permalink
DOC: fix SA01,ES01 for pandas.errors.CategoricalConversionWarning (#6…
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Oct 9, 2024
1 parent 6c1f95d commit 8303af3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.core.resample.Resampler.var SA01" \
-i "pandas.errors.AttributeConflictWarning SA01" \
-i "pandas.errors.CSSWarning SA01" \
-i "pandas.errors.CategoricalConversionWarning SA01" \
-i "pandas.errors.ChainedAssignmentError SA01" \
-i "pandas.errors.DataError SA01" \
-i "pandas.errors.DuplicateLabelError SA01" \
Expand Down
9 changes: 9 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,15 @@ class CategoricalConversionWarning(Warning):
"""
Warning is raised when reading a partial labeled Stata file using a iterator.
This warning helps ensure data integrity and alerts users to potential issues
during the incremental reading of Stata files with labeled data, allowing for
additional checks and adjustments as necessary.
See Also
--------
read_stata : Read a Stata file into a DataFrame.
Categorical : Represents a categorical variable in pandas.
Examples
--------
>>> from pandas.io.stata import StataReader
Expand Down

0 comments on commit 8303af3

Please sign in to comment.