SyntaxFix
Write A Post
Hire A Developer
Questions
Accepts a dict as argument and returns a dataframe with the keys of the dict as index and values as a column.
def dict_to_df(d): df=pd.DataFrame(d.items()) df.set_index(0, inplace=True) return df