Create a nonempty pandas object from the given metadata. Returns a pandas DataFrame, Series, or Index that contains two rows of fake data.
(x)
| 343 | |
| 344 | @meta_nonempty.register(object) |
| 345 | def meta_nonempty_object(x): |
| 346 | """Create a nonempty pandas object from the given metadata. |
| 347 | |
| 348 | Returns a pandas DataFrame, Series, or Index that contains two rows |
| 349 | of fake data. |
| 350 | """ |
| 351 | if is_scalar(x): |
| 352 | return _nonempty_scalar(x) |
| 353 | else: |
| 354 | raise TypeError( |
| 355 | "Expected Pandas-like Index, Series, DataFrame, or scalar, " |
| 356 | f"got {typename(type(x))}" |
| 357 | ) |
| 358 | |
| 359 | |
| 360 | @meta_nonempty.register(pd.DataFrame) |
nothing calls this directly
no test coverage detected
searching dependent graphs…