Cannot add a Series to an empty DataFrame only if the Series lengh is 1 #18736
Labels
accepted
Ready for implementation
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
Probably related to #18700.
When trying to add a Series as a column to an empty DataFrame, it appears to fail with an error only if the Series length is 1.
Expected behavior
It seems odd that the Series fails only if its length is 1.
It is consistent if it fails for lengths 2 or greater, or if it does not fail for length 1.
Installed versions
The text was updated successfully, but these errors were encountered: