2808 explained code solutions for 75 technologies


python-pandasCreate data frame from dict


import pandas as pd

dict = {
  'Phone': ['ip5', 'ip6', 'ip8', 'sms', 'xi'],
  'Phone Price': [204, 304, 404, 405, 305]
}
data = pd.DataFrame(dict)ctrl + c
import pandas as pd

load Pandas module

dict

dict to create dataframe from

pd.DataFrame

creates Pandas DataFrame object

data

will contain created dataframe