Checks if data is literally np.nan or pd.NA. Parameters ---------- data Any python object Returns ------- Whether or not the data is np.nan or pd.NA
(data: Any)
| 156 | |
| 157 | |
| 158 | def isna(data: Any) -> bool: |
| 159 | """Checks if data is literally np.nan or pd.NA. |
| 160 | |
| 161 | Parameters |
| 162 | ---------- |
| 163 | data |
| 164 | Any python object |
| 165 | |
| 166 | Returns |
| 167 | ------- |
| 168 | Whether or not the data is np.nan or pd.NA |
| 169 | """ |
| 170 | return data is pd.NA or data is np.nan # noqa: PLW0177 |
| 171 | |
| 172 | |
| 173 | def isnull(data): |
no outgoing calls
no test coverage detected
searching dependent graphs…