From 5b09bbe66f740e2cf8356ae5179292229db0040d Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Thu, 17 Oct 2024 11:47:25 +0530 Subject: [PATCH] DOC: fix SA01 for pandas.errors.PossiblePrecisionLoss --- ci/code_checks.sh | 1 - pandas/errors/__init__.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1974c98a1d1ff..bdf834ac50d03 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -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" \ diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index efc032b0b559e..b6df34e33ecce 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -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)})