(a, b)
| 334 | eq_types = {"i", "f", "u"} if numeric_equal else set() |
| 335 | |
| 336 | def equal_dtypes(a, b): |
| 337 | if isinstance(a, pd.CategoricalDtype) != isinstance(b, pd.CategoricalDtype): |
| 338 | return False |
| 339 | if isinstance(a, str) and a == "-" or isinstance(b, str) and b == "-": |
| 340 | return False |
| 341 | if isinstance(a, pd.CategoricalDtype) and isinstance(b, pd.CategoricalDtype): |
| 342 | if UNKNOWN_CATEGORIES in a.categories or UNKNOWN_CATEGORIES in b.categories: |
| 343 | return True |
| 344 | return a == b |
| 345 | return (a.kind in eq_types and b.kind in eq_types) or is_dtype_equal(a, b) |
| 346 | |
| 347 | if not ( |
| 348 | is_dataframe_like(meta) or is_series_like(meta) or is_index_like(meta) |
no outgoing calls
no test coverage detected
searching dependent graphs…