DATA ANALYSIS USING PYTHON
NOTE:- Begin by importing the python libraries
1. Loading the Data: The pd.read_csv() method loads the dataset. Ensure that the path to the
file is correct.
2. Data Cleaning: We check for any missing values and optionally drop rows with missing
values using dropna().
3. Grouping Data: We group the data by Industry_name_NZSIOC and Variable_name and
calculate the sum of the Value column for each group.
4. Descriptive Statistics: We print basic statistics (like mean, standard deviation) of the
Value column.
5. Visualization:
a. A bar plot shows the "Total income" by industry.
b. A combined bar plot visualizes several financial performance variables across
industries.
6. Save Aggregated Data: After the analysis, we save the aggregated data into a new CSV
file.