Beruflich Dokumente
Kultur Dokumente
df1 = pd.DataFrame(diSales)
The DataFrame object has columns assigned from the key(0,1,2) of the
dictionary object and its index assigned from the indexes
(‘Delhi’,’Mumbai’,’Colkata’,’Chennai’) of the Series object which are the
values of the dictionary object
4. Creating a DataFrame Object from another DataFrame Object
dtf3 and
dtf4 both
are
having
same
contents
Two ways of
displaying
like other
variables and
objects
DataFrame Attributes :
All information related to DataFrame object (such as its size, its datatype
etc.) is available through attributes.
Selecting/Accessing a column
Or
<DataFrameObject>.loc[<startrow>:<endrow>,
<startcolumn>:<endcolumn>]
Example :
OR
Series object:
Using pandas.iteritems() Function