10. Create a Dataframe Forest dFrameForest
10. Create a Dataframe Forest dFrameForest. Solution :- import pandas as pddata = {‘State’:[‘Assam’,’Delhi’,’Kerala’],‘GrossArea’:[78438,1483,38852],‘DenseForestArea’:[2792.00,6.72,1663.00]}df = pd.DataFrame(data)print(df.loc[0:2,[‘State’,’DenseForestArea’]]) Output :-
Read more