(name, dtype, index=None)
| 259 | |
| 260 | |
| 261 | def _empty_series(name, dtype, index=None): |
| 262 | if isinstance(dtype, str) and dtype == "category": |
| 263 | s = pd.Series(pd.Categorical([UNKNOWN_CATEGORIES]), name=name).iloc[:0] |
| 264 | if index is not None: |
| 265 | s.index = make_meta(index) |
| 266 | return s |
| 267 | return pd.Series([], dtype=dtype, name=name, index=index) |
| 268 | |
| 269 | |
| 270 | _simple_fake_mapping: dict[str, Any] = { |
no test coverage detected
searching dependent graphs…