Create pandas dataframe from list of dictionary of list

How can I create a dataframe from a list of dictionaries that contain list of rows for each key? Please check example below: >>> import pandas as pd >>> rec_set1 = {‘col1’: [1,2,3], ‘col2’: [5,3,4], ‘col3’: [‘x’,’y’,’z’]} >>> rec_set2 = {‘col1’: [5,6,7], ‘col2’: [-4,6,2], ‘col3’: [‘p’,’q’,’r’]} >>> rec_set_all = [rec_set1, rec_set2] >>> df = pd.DataFrame.from_records(rec_set1)…

Details