I have a dict of lists with different lengths:
my_dict_of_lists = {'D': [79,67,46], 'C': [25, 56, 76, 45, 54, 67, 98, 45]}
I would like to create a dataframe taking only the first three datapoints from 'C'; but I'm struggling on how to index these out.
my_new_df = pd.DataFrame.from_dict(my_dict_of_lists)
Ultimately, I want my dataframe to have the 3 items in 'D' and the first 3 items in 'C'.
Thanks for your help!