BUG: pandas.DataFrame().stack() raise an error, while expected is empty (original) (raw)


Code Sample, a copy-pastable example

pandas.DataFrame().stack() pandas.DataFrame().stack(dropna = True)

Problem description

I expect that stack() of empty dataframe will be empty dataframe and not an exception