Dataframe to dictionary. from_dict() We will use the from_dict method.