Skip to content

Commit

Permalink
DOC: fix SA01 for pandas.errors.PossiblePrecisionLoss
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 committed Oct 17, 2024
1 parent 2a10e04 commit 5b09bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 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 @@ -146,7 +146,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.errors.OutOfBoundsTimedelta SA01" \
-i "pandas.errors.PerformanceWarning SA01" \
-i "pandas.errors.PossibleDataLossError SA01" \
-i "pandas.errors.PossiblePrecisionLoss SA01" \
-i "pandas.errors.UndefinedVariableError PR01,SA01" \
-i "pandas.errors.UnsortedIndexError SA01" \
-i "pandas.errors.UnsupportedFunctionCall SA01" \
Expand Down
4 changes: 4 additions & 0 deletions pandas/errors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,10 @@ class PossiblePrecisionLoss(Warning):
When the column value is outside or equal to the int64 value the column is
converted to a float64 dtype.
See Also
--------
DataFrame.to_stata : Export DataFrame object to Stata dta format.
Examples
--------
>>> df = pd.DataFrame({"s": pd.Series([1, 2**53], dtype=np.int64)})
Expand Down

0 comments on commit 5b09bbe

Please sign in to comment.