for creating series object is series pd series(index=['index']heresome -dimensional data structuresuch as -dimensional ndarraya listor dictionaryand index is list of names of the same length as when is dictionarythe index is created from the keys of the dictionary when is an ndarray and index is omittedthe default index will be [ len(data)- dict {'one ': 'two ': 'three ': 'four ': print (pd series (dict)one two three four dtype int years [' ',' ',' 'cost [ print (pd series (cost index years name 'myseries ')#name it namemyseries dtype float the most commonly-used data structure in pandas is the two-dimensional dataframewhich can be thought of as pandasimplementation of spreadsheet or as dictionary in which each "keyof the dictionary corresponds to column name and the dictionary "valueis the data in that column to create dataframe one can use the pandas dataframe methodwhich has three main argumentsdataindex (row labels)and columns (column labelsdataframe(index=['']columns=['']+ if the index is not specifiedthe default index is [ len(data)- data can also be read directly from csv or excel fileas is done in section if dictionary is used to create the data frame (as below)the dictionary keys are used as the column names dict {'numbers ':[ , , , 'squared ':[ , , , df pd dataframe (dict index list('abcd ')print (dfa numbers squared