flat_table icon indicating copy to clipboard operation
flat_table copied to clipboard

An empty list kills normalize()

Open aatifsyed opened this issue 5 years ago • 1 comments

import pandas as pd
import flat_table

df = pd.DataFrame([
  {"list_of_properties":[]}
])

flat_table.normalize(df=df, expand_dicts=True, expand_lists=False)

Will result in a series of errors. This might be valid for expand_lists=True, but is undesirable when only expanding dicts

aatifsyed avatar Oct 13 '20 00:10 aatifsyed

I suspect this is what caused #12

aatifsyed avatar Oct 13 '20 01:10 aatifsyed