Skip to content

Commit 454455e

Browse files
updates
1 parent 6c50d8a commit 454455e

File tree

2 files changed

+300
-3
lines changed

2 files changed

+300
-3
lines changed

4. IPL DATA (2008-2025)/ipl.ipynb

Lines changed: 299 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"name": "stderr",
2424
"output_type": "stream",
2525
"text": [
26-
"C:\\Users\\a\\AppData\\Local\\Temp\\ipykernel_8004\\1393846161.py:1: DtypeWarning: Columns (28,29,30,31,43,46,47,48,51) have mixed types. Specify dtype option on import or set low_memory=False.\n",
26+
"C:\\Users\\a\\AppData\\Local\\Temp\\ipykernel_11780\\1393846161.py:1: DtypeWarning: Columns (28,29,30,31,43,46,47,48,51) have mixed types. Specify dtype option on import or set low_memory=False.\n",
2727
" df=pd.read_csv(\"IPL.csv\")\n"
2828
]
2929
}
@@ -122,9 +122,306 @@
122122
},
123123
{
124124
"cell_type": "code",
125-
"execution_count": null,
125+
"execution_count": 9,
126+
"id": "fe20d2ce",
127+
"metadata": {},
128+
"outputs": [
129+
{
130+
"data": {
131+
"text/html": [
132+
"<div>\n",
133+
"<style scoped>\n",
134+
" .dataframe tbody tr th:only-of-type {\n",
135+
" vertical-align: middle;\n",
136+
" }\n",
137+
"\n",
138+
" .dataframe tbody tr th {\n",
139+
" vertical-align: top;\n",
140+
" }\n",
141+
"\n",
142+
" .dataframe thead th {\n",
143+
" text-align: right;\n",
144+
" }\n",
145+
"</style>\n",
146+
"<table border=\"1\" class=\"dataframe\">\n",
147+
" <thead>\n",
148+
" <tr style=\"text-align: right;\">\n",
149+
" <th></th>\n",
150+
" <th>Unnamed: 0</th>\n",
151+
" <th>match_id</th>\n",
152+
" <th>date</th>\n",
153+
" <th>match_type</th>\n",
154+
" <th>event_name</th>\n",
155+
" <th>innings</th>\n",
156+
" <th>batting_team</th>\n",
157+
" <th>bowling_team</th>\n",
158+
" <th>over</th>\n",
159+
" <th>ball</th>\n",
160+
" <th>...</th>\n",
161+
" <th>team_runs</th>\n",
162+
" <th>team_balls</th>\n",
163+
" <th>team_wicket</th>\n",
164+
" <th>new_batter</th>\n",
165+
" <th>batter_runs</th>\n",
166+
" <th>batter_balls</th>\n",
167+
" <th>bowler_wicket</th>\n",
168+
" <th>batting_partners</th>\n",
169+
" <th>next_batter</th>\n",
170+
" <th>striker_out</th>\n",
171+
" </tr>\n",
172+
" </thead>\n",
173+
" <tbody>\n",
174+
" </tbody>\n",
175+
"</table>\n",
176+
"<p>0 rows × 64 columns</p>\n",
177+
"</div>"
178+
],
179+
"text/plain": [
180+
"Empty DataFrame\n",
181+
"Columns: [Unnamed: 0, match_id, date, match_type, event_name, innings, batting_team, bowling_team, over, ball, ball_no, batter, bat_pos, runs_batter, balls_faced, bowler, valid_ball, runs_extras, runs_total, runs_bowler, runs_not_boundary, extra_type, non_striker, non_striker_pos, wicket_kind, player_out, fielders, runs_target, review_batter, team_reviewed, review_decision, umpire, umpires_call, player_of_match, match_won_by, win_outcome, toss_winner, toss_decision, venue, city, day, month, year, season, gender, team_type, superover_winner, result_type, method, balls_per_over, overs, event_match_no, stage, match_number, team_runs, team_balls, team_wicket, new_batter, batter_runs, batter_balls, bowler_wicket, batting_partners, next_batter, striker_out]\n",
182+
"Index: []\n",
183+
"\n",
184+
"[0 rows x 64 columns]"
185+
]
186+
},
187+
"execution_count": 9,
188+
"metadata": {},
189+
"output_type": "execute_result"
190+
}
191+
],
192+
"source": [
193+
"df[df.duplicated()]"
194+
]
195+
},
196+
{
197+
"cell_type": "code",
198+
"execution_count": 5,
126199
"id": "03447570",
127200
"metadata": {},
201+
"outputs": [
202+
{
203+
"data": {
204+
"text/html": [
205+
"<div>\n",
206+
"<style scoped>\n",
207+
" .dataframe tbody tr th:only-of-type {\n",
208+
" vertical-align: middle;\n",
209+
" }\n",
210+
"\n",
211+
" .dataframe tbody tr th {\n",
212+
" vertical-align: top;\n",
213+
" }\n",
214+
"\n",
215+
" .dataframe thead th {\n",
216+
" text-align: right;\n",
217+
" }\n",
218+
"</style>\n",
219+
"<table border=\"1\" class=\"dataframe\">\n",
220+
" <thead>\n",
221+
" <tr style=\"text-align: right;\">\n",
222+
" <th></th>\n",
223+
" <th>Unnamed: 0</th>\n",
224+
" <th>match_id</th>\n",
225+
" <th>date</th>\n",
226+
" <th>match_type</th>\n",
227+
" <th>event_name</th>\n",
228+
" <th>innings</th>\n",
229+
" <th>batting_team</th>\n",
230+
" <th>bowling_team</th>\n",
231+
" <th>over</th>\n",
232+
" <th>ball</th>\n",
233+
" <th>...</th>\n",
234+
" <th>team_runs</th>\n",
235+
" <th>team_balls</th>\n",
236+
" <th>team_wicket</th>\n",
237+
" <th>new_batter</th>\n",
238+
" <th>batter_runs</th>\n",
239+
" <th>batter_balls</th>\n",
240+
" <th>bowler_wicket</th>\n",
241+
" <th>batting_partners</th>\n",
242+
" <th>next_batter</th>\n",
243+
" <th>striker_out</th>\n",
244+
" </tr>\n",
245+
" </thead>\n",
246+
" <tbody>\n",
247+
" <tr>\n",
248+
" <th>0</th>\n",
249+
" <td>131970</td>\n",
250+
" <td>335982</td>\n",
251+
" <td>2008-04-18</td>\n",
252+
" <td>T20</td>\n",
253+
" <td>Indian Premier League</td>\n",
254+
" <td>1</td>\n",
255+
" <td>Kolkata Knight Riders</td>\n",
256+
" <td>Royal Challengers Bangalore</td>\n",
257+
" <td>0</td>\n",
258+
" <td>1</td>\n",
259+
" <td>...</td>\n",
260+
" <td>1</td>\n",
261+
" <td>1</td>\n",
262+
" <td>0</td>\n",
263+
" <td>NaN</td>\n",
264+
" <td>0</td>\n",
265+
" <td>1</td>\n",
266+
" <td>0</td>\n",
267+
" <td>('BB McCullum', 'SC Ganguly')</td>\n",
268+
" <td>NaN</td>\n",
269+
" <td>False</td>\n",
270+
" </tr>\n",
271+
" <tr>\n",
272+
" <th>1</th>\n",
273+
" <td>131971</td>\n",
274+
" <td>335982</td>\n",
275+
" <td>2008-04-18</td>\n",
276+
" <td>T20</td>\n",
277+
" <td>Indian Premier League</td>\n",
278+
" <td>1</td>\n",
279+
" <td>Kolkata Knight Riders</td>\n",
280+
" <td>Royal Challengers Bangalore</td>\n",
281+
" <td>0</td>\n",
282+
" <td>2</td>\n",
283+
" <td>...</td>\n",
284+
" <td>1</td>\n",
285+
" <td>2</td>\n",
286+
" <td>0</td>\n",
287+
" <td>NaN</td>\n",
288+
" <td>0</td>\n",
289+
" <td>1</td>\n",
290+
" <td>0</td>\n",
291+
" <td>('BB McCullum', 'SC Ganguly')</td>\n",
292+
" <td>NaN</td>\n",
293+
" <td>False</td>\n",
294+
" </tr>\n",
295+
" <tr>\n",
296+
" <th>2</th>\n",
297+
" <td>131972</td>\n",
298+
" <td>335982</td>\n",
299+
" <td>2008-04-18</td>\n",
300+
" <td>T20</td>\n",
301+
" <td>Indian Premier League</td>\n",
302+
" <td>1</td>\n",
303+
" <td>Kolkata Knight Riders</td>\n",
304+
" <td>Royal Challengers Bangalore</td>\n",
305+
" <td>0</td>\n",
306+
" <td>3</td>\n",
307+
" <td>...</td>\n",
308+
" <td>2</td>\n",
309+
" <td>2</td>\n",
310+
" <td>0</td>\n",
311+
" <td>NaN</td>\n",
312+
" <td>0</td>\n",
313+
" <td>1</td>\n",
314+
" <td>0</td>\n",
315+
" <td>('BB McCullum', 'SC Ganguly')</td>\n",
316+
" <td>NaN</td>\n",
317+
" <td>False</td>\n",
318+
" </tr>\n",
319+
" <tr>\n",
320+
" <th>3</th>\n",
321+
" <td>131973</td>\n",
322+
" <td>335982</td>\n",
323+
" <td>2008-04-18</td>\n",
324+
" <td>T20</td>\n",
325+
" <td>Indian Premier League</td>\n",
326+
" <td>1</td>\n",
327+
" <td>Kolkata Knight Riders</td>\n",
328+
" <td>Royal Challengers Bangalore</td>\n",
329+
" <td>0</td>\n",
330+
" <td>3</td>\n",
331+
" <td>...</td>\n",
332+
" <td>2</td>\n",
333+
" <td>3</td>\n",
334+
" <td>0</td>\n",
335+
" <td>NaN</td>\n",
336+
" <td>0</td>\n",
337+
" <td>2</td>\n",
338+
" <td>0</td>\n",
339+
" <td>('BB McCullum', 'SC Ganguly')</td>\n",
340+
" <td>NaN</td>\n",
341+
" <td>False</td>\n",
342+
" </tr>\n",
343+
" <tr>\n",
344+
" <th>4</th>\n",
345+
" <td>131974</td>\n",
346+
" <td>335982</td>\n",
347+
" <td>2008-04-18</td>\n",
348+
" <td>T20</td>\n",
349+
" <td>Indian Premier League</td>\n",
350+
" <td>1</td>\n",
351+
" <td>Kolkata Knight Riders</td>\n",
352+
" <td>Royal Challengers Bangalore</td>\n",
353+
" <td>0</td>\n",
354+
" <td>4</td>\n",
355+
" <td>...</td>\n",
356+
" <td>2</td>\n",
357+
" <td>4</td>\n",
358+
" <td>0</td>\n",
359+
" <td>NaN</td>\n",
360+
" <td>0</td>\n",
361+
" <td>3</td>\n",
362+
" <td>0</td>\n",
363+
" <td>('BB McCullum', 'SC Ganguly')</td>\n",
364+
" <td>NaN</td>\n",
365+
" <td>False</td>\n",
366+
" </tr>\n",
367+
" </tbody>\n",
368+
"</table>\n",
369+
"<p>5 rows × 64 columns</p>\n",
370+
"</div>"
371+
],
372+
"text/plain": [
373+
" Unnamed: 0 match_id date match_type event_name \\\n",
374+
"0 131970 335982 2008-04-18 T20 Indian Premier League \n",
375+
"1 131971 335982 2008-04-18 T20 Indian Premier League \n",
376+
"2 131972 335982 2008-04-18 T20 Indian Premier League \n",
377+
"3 131973 335982 2008-04-18 T20 Indian Premier League \n",
378+
"4 131974 335982 2008-04-18 T20 Indian Premier League \n",
379+
"\n",
380+
" innings batting_team bowling_team over ball \\\n",
381+
"0 1 Kolkata Knight Riders Royal Challengers Bangalore 0 1 \n",
382+
"1 1 Kolkata Knight Riders Royal Challengers Bangalore 0 2 \n",
383+
"2 1 Kolkata Knight Riders Royal Challengers Bangalore 0 3 \n",
384+
"3 1 Kolkata Knight Riders Royal Challengers Bangalore 0 3 \n",
385+
"4 1 Kolkata Knight Riders Royal Challengers Bangalore 0 4 \n",
386+
"\n",
387+
" ... team_runs team_balls team_wicket new_batter batter_runs \\\n",
388+
"0 ... 1 1 0 NaN 0 \n",
389+
"1 ... 1 2 0 NaN 0 \n",
390+
"2 ... 2 2 0 NaN 0 \n",
391+
"3 ... 2 3 0 NaN 0 \n",
392+
"4 ... 2 4 0 NaN 0 \n",
393+
"\n",
394+
" batter_balls bowler_wicket batting_partners next_batter \\\n",
395+
"0 1 0 ('BB McCullum', 'SC Ganguly') NaN \n",
396+
"1 1 0 ('BB McCullum', 'SC Ganguly') NaN \n",
397+
"2 1 0 ('BB McCullum', 'SC Ganguly') NaN \n",
398+
"3 2 0 ('BB McCullum', 'SC Ganguly') NaN \n",
399+
"4 3 0 ('BB McCullum', 'SC Ganguly') NaN \n",
400+
"\n",
401+
" striker_out \n",
402+
"0 False \n",
403+
"1 False \n",
404+
"2 False \n",
405+
"3 False \n",
406+
"4 False \n",
407+
"\n",
408+
"[5 rows x 64 columns]"
409+
]
410+
},
411+
"execution_count": 5,
412+
"metadata": {},
413+
"output_type": "execute_result"
414+
}
415+
],
416+
"source": [
417+
"df.head()"
418+
]
419+
},
420+
{
421+
"cell_type": "code",
422+
"execution_count": null,
423+
"id": "08d86785",
424+
"metadata": {},
128425
"outputs": [],
129426
"source": []
130427
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Welcome to the **Data Analysis Projects** repository! This collection of hands-o
2626
| Project No. | Project Title | Status | Description |
2727
|-------------|------------------------------------------------|--------|-----------------------------------------------------------------------------|
2828
| 1️⃣ | **Sugarcane Production Analysis** | ✅ Done | EDA on sugarcane production dataset across different years and regions. |
29-
| 2️⃣ | **Covid-19 Data Analysis** | ✅ Done | Analyze the global spread, trends, and impact of the Covid-19 pandemic. |
29+
| 2️⃣ | **Covid-19 Data Analysis** | ✅ Done | Analyze the India spread, trends, and impact of the Covid-19 pandemic. |
3030

3131
> 🔜 More projects are coming soon! Stay tuned.
3232

0 commit comments

Comments
 (0)