CREATE A DATAFRAME FOREST DFRAMEFOREST

 

Solution :- 

import pandas as pd
data ={‘State’:[‘Assam’,’Delhi’,’Kerala’],
‘GrossArea’:[78438,1483,38852],
‘DenseForestArea’:[2792.00,6.25,1663.00]}
df=pd.DataFrame(data)
print(df.loc[0:2,[‘State’,’DenseForestArea’]])