From ea00ef6b7d0187fc7fb9a5f9e6de0772964d33d6 Mon Sep 17 00:00:00 2001 From: ayush-4299 <147387831+ayush-4299@users.noreply.github.com> Date: Wed, 23 Apr 2025 11:19:42 +0530 Subject: [PATCH] Update Problem_Statement2.py --- Problem_Statement2.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Problem_Statement2.py b/Problem_Statement2.py index 225ecf2..7324aba 100644 --- a/Problem_Statement2.py +++ b/Problem_Statement2.py @@ -5,9 +5,7 @@ import matplotlib.pyplot as plt import seaborn as sns # Load the dataset -df=pd.read_csv(r"C:\Users\ayush\OneDrive\Desktop\PythonCA2\Data.csv") - -###Objective 1: Identify constituencies with the highest and lowest number of candidates +df=pd.read_csv(r"C:\Users\ayush\OneDrive\Desktop\PythonCA2\Data.csv # Count candidates per constituency candidates_per_constituency = df.groupby('ac_name')['candidate_name'].nunique() # Find the highest and lowest