GOI Financial Budget Analysis 2021
GOI Financial Budget Analysis 2021
GOI Financial Budget Analysis 2021
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 1/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
and railways, as well as for the expansion of rural electrification and digital connectivity. The government also announced various schemes to
provide employment to rural workers. Overall, the budget is geared towards boosting economic growth and creating jobs, particularly in the
country's rural areas.
In [49]: df.shape
(57, 2)
Out[49]:
In [50]: df.size
114
Out[50]:
In [51]: df.describe().T
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 2/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
Fund allotted(in ₹crores) 56.0 124401.2725 497430.315964 39.25 2079.6225 6638.935 58199.005 3483235.63
In [52]: df.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 57 entries, 0 to 56
Data columns (total 2 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 Department /Ministry 56 non-null object
1 Fund allotted(in ₹crores) 56 non-null float64
dtypes: float64(1), object(1)
memory usage: 1.0+ KB
In [53]: df.columns
In [54]: df.isnull().sum()
Department /Ministry 1
Out[54]:
Fund allotted(in ₹crores) 1
dtype: int64
In [55]: df.dropna(inplace=True)
df
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 3/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 4/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 5/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
In [56]: df=df.iloc[[0,3,6,8,11,14,15,18,21,23,24,27,29,32,36,39,41,42,43,44,53],:]
dr={'Department /Ministry': 'OTHERS', 'Fund allotted(in ₹crores)':721080.64}
df=df.append(dr,ignore_index=True)
df
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 6/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
21 OTHERS 721080.64
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 7/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
In [58]: df.plot.kde()
plt.ylabel('Max Fund allotted(in ₹crores)')
plt.show()
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 8/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 9/10
1/10/23, 10:11 PM GOI_Financial_budget_2021
The Analysis depicts that Ministry of Finance has highest allocation with 35.3%. Followed by Ministry of Defence with allocation of 12.2% &
Ministry of Consumers Affairs 6.5%.
localhost:8888/nbconvert/html/Documents/Pandas_demo/Practice/GOI_Financial_budget_2021.ipynb?download=false 10/10