i want to add a data from dict to dataframe and display on table is possible ??
import pandas as pd
names = ['alan','jack','martin','loki','edward','sakes']
old = [18,17,20,21,22,19]
data = {'names':names,'old':old}
print(data)
after excute :
{'names': ['alan', 'jack', 'martin', 'loki', 'edward', 'sakes'], 'old': [18, 17, 20, 21, 22, 19]}
any solution possible ??
plz help me i need for us
data = pd.DataFrame({'names': names, 'old': old})what you are looking for?