Learn practical skills, build real-world projects, and advance your career

Let's Analyze data pertaining to rainfall in India

The data is taken from kaggle.com.

import pandas as pd
import numpy as np
data_df = pd.read_csv("district wise rainfall normal.csv")
data_df
data_df.columns
Index(['STATE_UT_NAME', 'DISTRICT', 'JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN',
       'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC', 'ANNUAL', 'Jan-Feb',
       'Mar-May', 'Jun-Sep', 'Oct-Dec'],
      dtype='object')

Let's rename the columns for ease of anylysis and before that let's drop last four columns to obtain it ourselves if required in analyis