Open
Description
There isn't an issue for empty inputs.
There is a need to specify the behaviour for empty input. Note that “empty” input can mean many things, and even combinations of them:
- zero rows but non-zero columns
- zero columns but non-zero rows
- zero rows and zero columns
- other: e.g., empty list provided to
agg()
As suggested by @shwina in the Pandas Standardisation docs, the idea is to start by writing a bunch of tests across many different Pandas operations and see how many pass across libraries.
Classic example (quiz: what should this do?)
df = pd.DataFrame({"a": [], "b": []})
df.groupby(“a”).agg({})
A starting list of operations where tests are needed would be particularly helpful, I plan to start going through them and adding all the tests.
- The above example returns a
ValueError: No objects to concatenate
, is this the expected behaviour?