|
82 | 82 | WriteExcelBuffer, |
83 | 83 | npt, |
84 | 84 | ) |
85 | | -from pandas.compat import PYPY |
| 85 | +from pandas.compat import CHAINED_WARNING_DISABLED |
86 | 86 | from pandas.compat._constants import ( |
87 | 87 | REF_COUNT, |
88 | 88 | ) |
@@ -7081,7 +7081,7 @@ def fillna( |
7081 | 7081 | """ |
7082 | 7082 | inplace = validate_bool_kwarg(inplace, "inplace") |
7083 | 7083 | if inplace: |
7084 | | - if not PYPY: |
| 7084 | + if not CHAINED_WARNING_DISABLED: |
7085 | 7085 | if sys.getrefcount( |
7086 | 7086 | self |
7087 | 7087 | ) < REF_COUNT and not lib.is_local_in_caller_frame(self): |
@@ -7330,7 +7330,7 @@ def ffill( |
7330 | 7330 | """ |
7331 | 7331 | inplace = validate_bool_kwarg(inplace, "inplace") |
7332 | 7332 | if inplace: |
7333 | | - if not PYPY: |
| 7333 | + if not CHAINED_WARNING_DISABLED: |
7334 | 7334 | if sys.getrefcount( |
7335 | 7335 | self |
7336 | 7336 | ) < REF_COUNT and not lib.is_local_in_caller_frame(self): |
@@ -7472,7 +7472,7 @@ def bfill( |
7472 | 7472 | """ |
7473 | 7473 | inplace = validate_bool_kwarg(inplace, "inplace") |
7474 | 7474 | if inplace: |
7475 | | - if not PYPY: |
| 7475 | + if not CHAINED_WARNING_DISABLED: |
7476 | 7476 | if sys.getrefcount( |
7477 | 7477 | self |
7478 | 7478 | ) < REF_COUNT and not lib.is_local_in_caller_frame(self): |
@@ -7559,7 +7559,7 @@ def replace( |
7559 | 7559 |
|
7560 | 7560 | inplace = validate_bool_kwarg(inplace, "inplace") |
7561 | 7561 | if inplace: |
7562 | | - if not PYPY: |
| 7562 | + if not CHAINED_WARNING_DISABLED: |
7563 | 7563 | if sys.getrefcount( |
7564 | 7564 | self |
7565 | 7565 | ) < REF_COUNT and not lib.is_local_in_caller_frame(self): |
@@ -7924,7 +7924,7 @@ def interpolate( |
7924 | 7924 | inplace = validate_bool_kwarg(inplace, "inplace") |
7925 | 7925 |
|
7926 | 7926 | if inplace: |
7927 | | - if not PYPY: |
| 7927 | + if not CHAINED_WARNING_DISABLED: |
7928 | 7928 | if sys.getrefcount( |
7929 | 7929 | self |
7930 | 7930 | ) < REF_COUNT and not lib.is_local_in_caller_frame(self): |
@@ -8581,7 +8581,7 @@ def clip( |
8581 | 8581 | inplace = validate_bool_kwarg(inplace, "inplace") |
8582 | 8582 |
|
8583 | 8583 | if inplace: |
8584 | | - if not PYPY: |
| 8584 | + if not CHAINED_WARNING_DISABLED: |
8585 | 8585 | if sys.getrefcount( |
8586 | 8586 | self |
8587 | 8587 | ) < REF_COUNT and not lib.is_local_in_caller_frame(self): |
@@ -10218,7 +10218,7 @@ def where( |
10218 | 10218 | """ |
10219 | 10219 | inplace = validate_bool_kwarg(inplace, "inplace") |
10220 | 10220 | if inplace: |
10221 | | - if not PYPY: |
| 10221 | + if not CHAINED_WARNING_DISABLED: |
10222 | 10222 | if sys.getrefcount( |
10223 | 10223 | self |
10224 | 10224 | ) < REF_COUNT and not lib.is_local_in_caller_frame(self): |
@@ -10284,7 +10284,7 @@ def mask( |
10284 | 10284 | ) -> Self | None: |
10285 | 10285 | inplace = validate_bool_kwarg(inplace, "inplace") |
10286 | 10286 | if inplace: |
10287 | | - if not PYPY: |
| 10287 | + if not CHAINED_WARNING_DISABLED: |
10288 | 10288 | if sys.getrefcount( |
10289 | 10289 | self |
10290 | 10290 | ) < REF_COUNT and not lib.is_local_in_caller_frame(self): |
|
0 commit comments