I am trying to append a pandas data frame with a dictionary. However, its not appending. I am getting an empty dataframe when I print it. Kindly tell me where have made a mistake in my code.
import pandas as pd
dfs = pd.DataFrame()
def tstfunc():
dicts = {'a': "pavan", 'b':"sunder"}
dfs.append(dicts, ignore_index=True)
print(dfs)
tstfunc()