Join GitHub today
BUG: pd.concat returns empty series if called on mixture of empty and non-empty series #18187
import pandas as pd s1 = pd.Series() s2 = pd.Series() pd.concat([s1, s2])
returns an empty series
Concatenating an non-empty and empty series returns an empty series.
Btw, I stumbled upon this error while I was trying to fix #18178. Out of curiosity I checked what happens in case of concatenating non-empty and empty series instead of frames.
Series equal to