Skip to content

Conversation

felixlawrence
Copy link

Just leaving a drive-by PR, in the hope that it assists the bug report #62775. I probably won't have time to push this through 'properly'; I offer this with the hope that it helps communicate the problem and a potential solution.

A simple test case is that

pd.DataFrame.from_dict({'good': pd.Series(dict(a=1, b=2)), 'blank': pd.Series()}, orient='index').shape == (2, 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.from_dict() drops empty rows with orient='index', inconsistently with empty columns

1 participant