type notes ndarray matrix of datapassing optional row and column labels dict of arrayslistsor tuples each sequence becomes column in the dataframe all sequences must be the same length numpy structured/record array treated as the "dict of arrayscase dict of series each value becomes column indexes from each series are unioned together to form the result' row index if no explicit index is passed dict of dicts each inner dict becomes column keys are unioned to form the row index as in the "dict of seriescase list of dicts or series each item becomes row in the dataframe union of dict keys or series indexes become the dataframe' column labels list of lists or tuples treated as the " ndarraycase another dataframe the dataframe' indexes are used unless different ones are passed numpy maskedarray like the " ndarraycase except masked values become na/missing in the dataframe result index objects pandas' index objects are responsible for holding the axis labels and other metadata (like the axis name or namesany array or other sequence of labels used when constructing series or dataframe is internally converted to an indexin [ ]obj series(range( )index=[' '' '' ']in [ ]index obj index in [ ]index out[ ]index([abc]dtype=objectin [ ]index[ :out[ ]index([bc]dtype=objectindex objects are immutable and thus can' be modified by the userin [ ]index[ 'dexception traceback (most recent call lastin (---- index[ ' /users/wesm/code/pandas/pandas/core/index pyc in __setitem__(selfkeyvalue def __setitem__(selfkeyvalue) """disable the setting of values ""-- raise exception(str(self __class__object is immutable' def __getitem__(selfkey)exceptionobject is immutable getting started with pandas www it-ebooks info