File size: 86,098 Bytes
e08f04b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "1fa4d55b-027a-463d-832f-dead4018e035",
   "metadata": {},
   "source": [
    "### Handling XML File Data "
   ]
  },
  {
   "cell_type": "markdown",
   "id": "504872f1-a461-425a-a122-ddea07bb7217",
   "metadata": {},
   "source": [
    "#### XML-Extensibe Markup Language"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "d620cb25-9e85-4366-8861-6dcec8be3698",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "be2528d4-da70-406e-b89b-c7519abfd23b",
   "metadata": {},
   "source": [
    "# reading XML File using Python"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "f0ce563f-3b6b-47e0-b7d4-8806403b0a9b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>sl</th>\n",
       "      <th>sw</th>\n",
       "      <th>pl</th>\n",
       "      <th>label</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1.2</td>\n",
       "      <td>3.4</td>\n",
       "      <td>2.5</td>\n",
       "      <td>setosa</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2.5</td>\n",
       "      <td>2.9</td>\n",
       "      <td>3.6</td>\n",
       "      <td>verginica</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3.6</td>\n",
       "      <td>1.8</td>\n",
       "      <td>4.5</td>\n",
       "      <td>versicolor</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    sl   sw   pl       label\n",
       "0  1.2  3.4  2.5      setosa\n",
       "1  2.5  2.9  3.6   verginica\n",
       "2  3.6  1.8  4.5  versicolor"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.read_xml(\"flower.xml\",xpath=\"flower\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "997d628b-969c-4fe8-a0ae-7632f425090e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>age</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>p1</td>\n",
       "      <td>85</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>p2</td>\n",
       "      <td>90</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  name  age\n",
       "0   p1   85\n",
       "1   p2   90"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.read_xml(\"flower.xml\",xpath=\"farmer\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "ed0e6cfc-29f9-4857-8f59-f54a182fe9f0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>c_name</th>\n",
       "      <th>city_name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>India</td>\n",
       "      <td>Hyderabad</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>America</td>\n",
       "      <td>california</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    c_name   city_name\n",
       "0    India   Hyderabad\n",
       "1  America  california"
      ]
     },
     "execution_count": 28,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.read_xml(\"flower.xml\",xpath=\"country\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "824fb54a-aee5-472a-91ba-a2b6e881c451",
   "metadata": {},
   "outputs": [],
   "source": [
    "data =pd.read_xml(\"flower.xml\",xpath=\"flower\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "666e1306-4efd-4c79-9af1-99542643a761",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>sl</th>\n",
       "      <th>sw</th>\n",
       "      <th>pl</th>\n",
       "      <th>label</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1.2</td>\n",
       "      <td>3.4</td>\n",
       "      <td>2.5</td>\n",
       "      <td>setosa</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2.5</td>\n",
       "      <td>2.9</td>\n",
       "      <td>3.6</td>\n",
       "      <td>verginica</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3.6</td>\n",
       "      <td>1.8</td>\n",
       "      <td>4.5</td>\n",
       "      <td>versicolor</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    sl   sw   pl       label\n",
       "0  1.2  3.4  2.5      setosa\n",
       "1  2.5  2.9  3.6   verginica\n",
       "2  3.6  1.8  4.5  versicolor"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "1ab64f68-0174-4fae-b028-3c32b0fa37dd",
   "metadata": {},
   "outputs": [],
   "source": [
    "data.to_xml(\"flower1.xml\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "7c486d90-5a93-47e6-9356-71c5b1b94121",
   "metadata": {},
   "outputs": [],
   "source": [
    "data.to_xml(\"flower12.xml\",attr_cols=[\"sl\",\"sw\",\"pl\",\"label\"])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "id": "71d4bf11-d6e8-4e5b-a2aa-6e41bff7224b",
   "metadata": {},
   "outputs": [],
   "source": [
    "data.to_xml(\"flower123.xml\",elem_cols=[\"sl\",\"sw\",\"pl\",\"label\"])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "eb72ab7b-2fe2-4a9a-b992-8a81ab462011",
   "metadata": {},
   "outputs": [],
   "source": [
    "# Reading Html File Using Python"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "id": "119dd88a-ecc7-4407-84fd-5830eb7c56e4",
   "metadata": {},
   "outputs": [],
   "source": [
    "d =pd.read_html(\"https://en.wikipedia.org/wiki/Indian_Premier_League\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "id": "969787d7-578d-4632-afb8-0d61ab75b16f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[                    0                                                  1\n",
       " 0                 NaN                                                NaN\n",
       " 1           Countries                                              India\n",
       " 2       Administrator       Board of Control for Cricket in India (BCCI)\n",
       " 3        Headquarters    Cricket Centre, Churchgate, Mumbai, Maharashtra\n",
       " 4              Format                                           Twenty20\n",
       " 5       First edition                                               2008\n",
       " 6      Latest edition                                               2024\n",
       " 7        Next edition                                               2025\n",
       " 8   Tournament format  Round-robin format with group system and playoffs\n",
       " 9     Number of teams                                                 10\n",
       " 10   Current champion                  Kolkata Knight Riders (3rd title)\n",
       " 11    Most successful  Chennai Super Kings Mumbai Indians (5 titles e...\n",
       " 12          Most runs                                Virat Kohli (8,004)\n",
       " 13       Most wickets                             Yuzvendra Chahal (205)\n",
       " 14                 TV  India Star Sports (TV)[1] JioCinema (Internet)...\n",
       " 15            Website                                         iplt20.com,\n",
       "                                              Seasons\n",
       " 0  2008 2009 2010 2011 2012 2013 2014 2015 2016 2...,\n",
       "     Season                    Winners\n",
       " 0     2008           Rajasthan Royals\n",
       " 1     2009            Deccan Chargers\n",
       " 2     2010        Chennai Super Kings\n",
       " 3     2011    Chennai Super Kings (2)\n",
       " 4     2012      Kolkata Knight Riders\n",
       " 5     2013             Mumbai Indians\n",
       " 6     2014  Kolkata Knight Riders (2)\n",
       " 7     2015         Mumbai Indians (2)\n",
       " 8     2016        Sunrisers Hyderabad\n",
       " 9     2017         Mumbai Indians (3)\n",
       " 10    2018    Chennai Super Kings (3)\n",
       " 11    2019         Mumbai Indians (4)\n",
       " 12    2020         Mumbai Indians (5)\n",
       " 13    2021    Chennai Super Kings (4)\n",
       " 14    2022             Gujarat Titans\n",
       " 15    2023    Chennai Super Kings (5)\n",
       " 16    2024  Kolkata Knight Riders (3),\n",
       "          Indian Premier League                     CPL  \\\n",
       " 0          Chennai Super Kings                     NaN   \n",
       " 1               Delhi Capitals                     NaN   \n",
       " 2               Gujarat Titans                     NaN   \n",
       " 3        Kolkata Knight Riders  Trinbago Knight Riders   \n",
       " 4         Lucknow Super Giants                     NaN   \n",
       " 5               Mumbai Indians                     NaN   \n",
       " 6                 Punjab Kings       Saint Lucia Kings   \n",
       " 7             Rajasthan Royals         Barbados Royals   \n",
       " 8  Royal Challengers Bengaluru                     NaN   \n",
       " 9          Sunrisers Hyderabad                     NaN   \n",
       " \n",
       "                      SA20                      ILT                        MLC  \n",
       " 0      Joburg Super Kings                      NaN          Texas Super Kings  \n",
       " 1       Pretoria Capitals           Dubai Capitals                        NaN  \n",
       " 2                     NaN                      NaN                        NaN  \n",
       " 3                     NaN  Abu Dhabi Knight Riders  Los Angeles Knight Riders  \n",
       " 4   Durban's Super Giants                      NaN                        NaN  \n",
       " 5            MI Cape Town              MI Emirates                MI New York  \n",
       " 6                     NaN                      NaN                        NaN  \n",
       " 7            Paarl Royals                      NaN                        NaN  \n",
       " 8                     NaN                      NaN                        NaN  \n",
       " 9  Sunrisers Eastern Cape                      NaN                        NaN  ,\n",
       "              Player                           IPL team          Salary\n",
       " 0    Mitchell Starc        Kolkata Knight Riders (KKR)  Rs 24.75 Crore\n",
       " 1       Pat Cummins          Sunrisers Hyderabad (SRH)  Rs 20.50 Crore\n",
       " 2    Daryl Mitchell          Chennai Super Kings (CSK)     Rs 14 Crore\n",
       " 3     Harshal Patel                Punjab Kings (PBKS)  Rs 11.75 Crore\n",
       " 4    Alzarri Joseph  Royal Challengers Bengaluru (RCB)  Rs 11.50 Crore\n",
       " 5   Spencer Johnson                Gujarat Titans (GT)     Rs 10 Crore\n",
       " 6      Sameer Rizvi          Chennai Super Kings (CSK)   Rs 8.40 Crore\n",
       " 7     Rilee Rossouw                Punjab Kings (PBKS)      Rs 8 Crore\n",
       " 8     Rovman Powell              Rajasthan Royals (RR)   Rs 7.40 Crore\n",
       " 9     Shahrukh Khan                Gujarat Titans (GT)   Rs 7.40 Crore\n",
       " 10            Total                              Total  Rs 123.7 Crore\n",
       " 11   Average Salary                     Average Salary  Rs 12.37 Crore,\n",
       "     0                                                  1\n",
       " 0 NaN  This section does not cite any sources. Please...,\n",
       "    Team                       Team.1                    City  \\\n",
       " 0   NaN          Chennai Super Kings     Chennai, Tamil Nadu   \n",
       " 1   NaN               Delhi Capitals        New Delhi, Delhi   \n",
       " 2   NaN               Gujarat Titans      Ahmedabad, Gujarat   \n",
       " 3   NaN        Kolkata Knight Riders    Kolkata, West Bengal   \n",
       " 4   NaN         Lucknow Super Giants  Lucknow, Uttar Pradesh   \n",
       " 5   NaN               Mumbai Indians     Mumbai, Maharashtra   \n",
       " 6   NaN                 Punjab Kings       Mullanpur, Punjab   \n",
       " 7   NaN             Rajasthan Royals       Jaipur, Rajasthan   \n",
       " 8   NaN  Royal Challengers Bengaluru    Bangalore, Karnataka   \n",
       " 9   NaN          Sunrisers Hyderabad    Hyderabad, Telangana   \n",
       " \n",
       "                                          Home ground  Debut          Captain  \\\n",
       " 0                          M. A. Chidambaram Stadium   2008  Ruturaj Gaikwad   \n",
       " 1                               Arun Jaitley Stadium   2008              NaN   \n",
       " 2                              Narendra Modi Stadium   2022     Shubman Gill   \n",
       " 3                                       Eden Gardens   2008              NaN   \n",
       " 4                               BRSABV Ekana Stadium   2022              NaN   \n",
       " 5                                   Wankhede Stadium   2008    Hardik Pandya   \n",
       " 6  Maharaja Yadavindra Singh International Cricke...   2008              NaN   \n",
       " 7                             Sawai Mansingh Stadium   2008     Sanju Samson   \n",
       " 8                             M. Chinnaswamy Stadium   2008              NaN   \n",
       " 9                               Rajiv Gandhi Stadium   2013      Pat Cummins   \n",
       " \n",
       "            Head coach                                         Owner(s)  \n",
       " 0     Stephen Fleming                                    N. Srinivasan  \n",
       " 1       Hemang Badani           Grandhi Mallikarjuna Rao Sajjan Jindal  \n",
       " 2        Ashish Nehra                                  Siddharth Patel  \n",
       " 3  Chandrakant Pandit             Shah Rukh Khan Juhi Chawla Jay Mehta  \n",
       " 4       Justin Langer                                    Sanjiv Goenka  \n",
       " 5  Mahela Jayawardene                                    Mukesh Ambani  \n",
       " 6       Ricky Ponting  Mohit Burman Ness Wadia Preity Zinta Karan Paul  \n",
       " 7        Rahul Dravid     Manoj Badale Lachlan Murdoch Gerry Cardinale  \n",
       " 8         Andy Flower                                   Hina Nagarajan  \n",
       " 9      Daniel Vettori                                  Kalanithi Maran  ,\n",
       "                      Team       City               State  \\\n",
       " 0         Deccan Chargers  Hyderabad  Andhra Pradesh[75]   \n",
       " 1    Kochi Tuskers Kerala      Kochi              Kerala   \n",
       " 2     Pune Warriors India       Pune         Maharashtra   \n",
       " 3  Rising Pune Supergiant       Pune         Maharashtra   \n",
       " 4           Gujarat Lions     Rajkot             Gujarat   \n",
       " \n",
       "                                Home ground  Debut  Dissolved  \\\n",
       " 0                     Rajiv Gandhi Stadium   2008       2012   \n",
       " 1                 Jawaharlal Nehru Stadium   2011       2011   \n",
       " 2  Maharashtra Cricket Association Stadium   2011       2013   \n",
       " 3  Maharashtra Cricket Association Stadium   2016       2018   \n",
       " 4   Saurashtra Cricket Association Stadium   2016       2018   \n",
       " \n",
       "                  Owner(s)  \n",
       " 0        Deccan Chronicle  \n",
       " 1   Kochi Cricket Pvt Ltd  \n",
       " 2    Sahara India Pariwar  \n",
       " 3  RP-Sanjiv Goenka Group  \n",
       " 4      Intex Technologies  ,\n",
       "                            Team Title(s) Runner-up  \\\n",
       " 0           Chennai Super Kings        5         5   \n",
       " 1                Mumbai Indians        5         1   \n",
       " 2         Kolkata Knight Riders        3         1   \n",
       " 3           Sunrisers Hyderabad        1         2   \n",
       " 4              Rajasthan Royals        1         1   \n",
       " 5                Gujarat Titans        1         1   \n",
       " 6              Deccan Chargers†        1         –   \n",
       " 7   Royal Challengers Bengaluru        –         3   \n",
       " 8                Delhi Capitals        –         1   \n",
       " 9                  Punjab Kings        –         1   \n",
       " 10      Rising Pune Supergiant†        –         1   \n",
       " 11                            –        –       NaN   \n",
       " \n",
       "                      Seasons won             Seasons runner-up  \\\n",
       " 0   2010, 2011, 2018, 2021, 2023  2008, 2012, 2013, 2015, 2019   \n",
       " 1   2013, 2015, 2017, 2019, 2020                          2010   \n",
       " 2               2012, 2014, 2024                          2021   \n",
       " 3                           2016                    2018, 2024   \n",
       " 4                           2008                          2022   \n",
       " 5                           2022                          2023   \n",
       " 6                           2009                             –   \n",
       " 7                              –              2009, 2011, 2016   \n",
       " 8                              –                          2020   \n",
       " 9                              –                          2014   \n",
       " 10                             –                          2017   \n",
       " 11                           NaN                           NaN   \n",
       " \n",
       "     No. of playoffs played  No. of seasons played  \n",
       " 0                     12.0                   15.0  \n",
       " 1                     10.0                   17.0  \n",
       " 2                      8.0                   17.0  \n",
       " 3                      7.0                   12.0  \n",
       " 4                      6.0                   15.0  \n",
       " 5                      2.0                    3.0  \n",
       " 6                      2.0                    5.0  \n",
       " 7                      9.0                   17.0  \n",
       " 8                      6.0                   17.0  \n",
       " 9                      2.0                   17.0  \n",
       " 10                     1.0                    2.0  \n",
       " 11                     NaN                    NaN  ,\n",
       "     Year                                     Final  \\\n",
       "     Year                                    Winner   \n",
       " 0   2008         Rajasthan Royals 164/7 (20 overs)   \n",
       " 1   2009          Deccan Chargers 143/6 (20 overs)   \n",
       " 2   2010      Chennai Super Kings 168/5 (20 overs)   \n",
       " 3   2011      Chennai Super Kings 205/5 (20 overs)   \n",
       " 4   2012  Kolkata Knight Riders 192/5 (19.4 overs)   \n",
       " 5   2013           Mumbai Indians 148/9 (20 overs)   \n",
       " 6   2014  Kolkata Knight Riders 200/7 (19.3 overs)   \n",
       " 7   2015           Mumbai Indians 202/5 (20 overs)   \n",
       " 8   2016      Sunrisers Hyderabad 208/7 (20 overs)   \n",
       " 9   2017           Mumbai Indians 129/8 (20 overs)   \n",
       " 10  2018    Chennai Super Kings 181/2 (18.3 overs)   \n",
       " 11  2019           Mumbai Indians 149/8 (20 overs)   \n",
       " 12  2020         Mumbai Indians 157/5 (18.4 overs)   \n",
       " 13  2021      Chennai Super Kings 192/3 (20 overs)   \n",
       " 14  2022         Gujarat Titans 133/3 (18.1 overs)   \n",
       " 15  2023      Chennai Super Kings 171/5 (15 overs)   \n",
       " 16  2024  Kolkata Knight Riders 114/2 (10.3 overs)   \n",
       " \n",
       "                                                    \\\n",
       "                                            Result   \n",
       " 0                 RR won by 3 wickets (scorecard)   \n",
       " 1                   DEC won by 6 runs (scorecard)   \n",
       " 2                  CSK won by 22 runs (scorecard)   \n",
       " 3                  CSK won by 58 runs (scorecard)   \n",
       " 4                KKR won by 5 wickets (scorecard)   \n",
       " 5                   MI won by 23 runs (scorecard)   \n",
       " 6                KKR won by 3 wickets (scorecard)   \n",
       " 7                   MI won by 41 runs (scorecard)   \n",
       " 8                   SRH won by 8 runs (scorecard)   \n",
       " 9                     MI won by 1 run (scorecard)   \n",
       " 10               CSK won by 8 wickets (scorecard)   \n",
       " 11                    MI won by 1 run (scorecard)   \n",
       " 12                MI won by 5 wickets (scorecard)   \n",
       " 13                 CSK won by 27 runs (scorecard)   \n",
       " 14                GT won by 7 wickets (scorecard)   \n",
       " 15  CSK won by 5 wickets (DLS-method) (scorecard)   \n",
       " 16               KKR won by 8 wickets (scorecard)   \n",
       " \n",
       "                                                   \\\n",
       "                                        Runner-up   \n",
       " 0           Chennai Super Kings 163/5 (20 overs)   \n",
       " 1   Royal Challengers Bangalore 137/9 (20 overs)   \n",
       " 2                Mumbai Indians 146/9 (20 overs)   \n",
       " 3   Royal Challengers Bangalore 147/8 (20 overs)   \n",
       " 4           Chennai Super Kings 190/3 (20 overs)   \n",
       " 5           Chennai Super Kings 125/9 (20 overs)   \n",
       " 6               Kings XI Punjab 199/4 (20 overs)   \n",
       " 7           Chennai Super Kings 161/8 (20 overs)   \n",
       " 8   Royal Challengers Bangalore 200/7 (20 overs)   \n",
       " 9        Rising Pune Supergiant 128/6 (20 overs)   \n",
       " 10          Sunrisers Hyderabad 178/6 (20 overs)   \n",
       " 11          Chennai Super Kings 148/7 (20 overs)   \n",
       " 12               Delhi Capitals 156/7 (20 overs)   \n",
       " 13        Kolkata Knight Riders 165/9 (20 overs)   \n",
       " 14             Rajasthan Royals 130/9 (20 overs)   \n",
       " 15               Gujarat Titans 214/4 (20 overs)   \n",
       " 16       Sunrisers Hyderabad 113/10 (18.3 overs)   \n",
       " \n",
       "                                    Final venue   Player of the season  \n",
       "                                    Final venue   Player of the season  \n",
       " 0                DY Patil Stadium, Navi Mumbai      Shane Watson (RR)  \n",
       " 1              Wanderers Stadium, Johannesburg   Adam Gilchrist (DEC)  \n",
       " 2                DY Patil Stadium, Navi Mumbai  Sachin Tendulkar (MI)  \n",
       " 3           M. A. Chidambaram Stadium, Chennai      Chris Gayle (RCB)  \n",
       " 4           M. A. Chidambaram Stadium, Chennai     Sunil Narine (KKR)  \n",
       " 5                        Eden Gardens, Kolkata      Shane Watson (RR)  \n",
       " 6            M. Chinnaswamy Stadium, Bengaluru   Glenn Maxwell (KXIP)  \n",
       " 7                        Eden Gardens, Kolkata    Andre Russell (KKR)  \n",
       " 8            M. Chinnaswamy Stadium, Bengaluru      Virat Kohli (RCB)  \n",
       " 9              Rajiv Gandhi Stadium, Hyderabad       Ben Stokes (RPS)  \n",
       " 10                    Wankhede Stadium, Mumbai     Sunil Narine (KKR)  \n",
       " 11             Rajiv Gandhi Stadium, Hyderabad    Andre Russell (KKR)  \n",
       " 12  Dubai International Cricket Stadium, Dubai      Jofra Archer (RR)  \n",
       " 13  Dubai International Cricket Stadium, Dubai    Harshal Patel (RCB)  \n",
       " 14            Narendra Modi Stadium, Ahmedabad       Jos Buttler (RR)  \n",
       " 15            Narendra Modi Stadium, Ahmedabad      Shubman Gill (GT)  \n",
       " 16          M. A. Chidambaram Stadium, Chennai     Sunil Narine (KKR)  ,\n",
       "                     Season (No. of teams) 2008 (8) 2009 (8) 2010 (8)  \\\n",
       " 0                     Chennai Super Kings       RU       SF        C   \n",
       " 1       Delhi Capitals / Delhi Daredevils       SF       SF      5th   \n",
       " 2                          Gujarat Titans        –        –        –   \n",
       " 3                   Kolkata Knight Riders      6th      8th      6th   \n",
       " 4                    Lucknow Super Giants        –        –        –   \n",
       " 5                          Mumbai Indians      5th      7th       RU   \n",
       " 6          Punjab Kings / Kings XI Punjab       SF      5th      8th   \n",
       " 7                        Rajasthan Royals        C      6th      7th   \n",
       " 8             Royal Challengers Bengaluru      7th       RU      3rd   \n",
       " 9   Deccan Chargers / Sunrisers Hyderabad      8th        C      4th   \n",
       " 10                  Kochi Tuskers Kerala†        –        –        –   \n",
       " 11   Pune Warriors / Pune Warriors India†        –        –        –   \n",
       " 12                         Gujarat Lions†        –        –        –   \n",
       " 13                Rising Pune Supergiant†        –        –        –   \n",
       " \n",
       "    2011 (10) 2012 (9) 2013 (9) 2014 (8) 2015 (8)   2016 (8)   2017 (8)  \\\n",
       " 0          C       RU       RU       PO       RU  Suspended  Suspended   \n",
       " 1       10th       PO      9th      8th      7th        6th        6th   \n",
       " 2          –        –        –        –        –          –          –   \n",
       " 3         PO        C      7th        C      5th         PO         PO   \n",
       " 4          –        –        –        –        –          –          –   \n",
       " 5         PO       PO        C       PO        C        5th          C   \n",
       " 6        5th      6th      6th       RU      8th        8th        5th   \n",
       " 7        6th      7th       PO      5th       PO  Suspended  Suspended   \n",
       " 8         RU      5th      5th      7th       PO         RU        8th   \n",
       " 9        7th      8th       PO      6th      6th          C         PO   \n",
       " 10       8th        –        –        –        –          –          –   \n",
       " 11       9th      9th      8th        –        –          –          –   \n",
       " 12         –        –        –        –        –         PO        7th   \n",
       " 13         –        –        –        –        –        7th         RU   \n",
       " \n",
       "    2018 (8) 2019 (8) 2020 (8) 2021 (8) 2022 (10) 2023 (10) 2024 (10)  \n",
       " 0         C       RU      7th        C       9th         C       5th  \n",
       " 1       8th       PO       RU       PO       5th       9th       6th  \n",
       " 2         –        –        –        –         C        RU       8th  \n",
       " 3        PO      5th      5th       RU       7th       7th         C  \n",
       " 4         –        –        –        –        PO        PO       7th  \n",
       " 5       5th        C        C      5th      10th        PO      10th  \n",
       " 6       7th      6th      6th      6th       6th       8th       9th  \n",
       " 7        PO      7th      8th      7th        RU       5th        PO  \n",
       " 8       6th      8th       PO       PO        PO       6th        PO  \n",
       " 9        RU       PO       PO      8th       8th      10th        RU  \n",
       " 10        –        –        –        –         –         –         –  \n",
       " 11        –        –        –        –         –         –         –  \n",
       " 12        –        –        –        –         –         –         –  \n",
       " 13        –        –        –        –         –         –         –  ,\n",
       "     Year       1st      2nd      3rd      4th   5th   6th   7th   8th   9th  \\\n",
       " 0   2008    RR (C)     KXIP  CSK (R)       DD    MI   KKR   RCB   DCH   NaN   \n",
       " 1   2009        DD      CSK  RCB (R)  DCH (C)  KXIP    RR    MI   KKR   NaN   \n",
       " 2   2010    MI (R)      DCH  CSK (C)      RCB    DD   KKR    RR  KXIP   NaN   \n",
       " 3   2011   RCB (R)  CSK (C)       MI      KKR  KXIP    RR   DCH   KTK   PWI   \n",
       " 4   2012        DD  KKR (C)       MI  CSK (R)   RCB  KXIP    RR   DCH   PWI   \n",
       " 5   2013   CSK (R)   MI (C)       RR      SRH   RCB  KXIP   KKR   PWI    DC   \n",
       " 6   2014  KXIP (R)  KKR (C)      CSK       MI    RR   SRH   RCB    DC   NaN   \n",
       " 7   2015   CSK (R)   MI (C)      RCB       RR   KKR   SRH    DC  KXIP   NaN   \n",
       " 8   2016        GL  RCB (R)  SRH (C)      KKR    MI    DC   RPS  KXIP   NaN   \n",
       " 9   2017    MI (C)  RPS (R)      SRH      KKR  KXIP    DC    GL   RCB   NaN   \n",
       " 10  2018   SRH (R)  CSK (C)      KKR       RR    MI   RCB  KXIP    DC   NaN   \n",
       " 11  2019    MI (C)  CSK (R)       DC      SRH   KKR  KXIP    RR   RCB   NaN   \n",
       " 12  2020    MI (C)   DC (R)      SRH      RCB   KKR  KXIP   CSK    RR   NaN   \n",
       " 13  2021        DC  CSK (C)      RCB  KKR (R)    MI  PBKS    RR   SRH   NaN   \n",
       " 14  2022    GT (C)   RR (R)      LSG      RCB    DC  PBKS   KKR   SRH   CSK   \n",
       " 15  2023    GT (R)  CSK (C)      LSG       MI    RR   RCB   KKR  PBKS    DC   \n",
       " 16  2024   KKR (C)  SRH (R)       RR      RCB   CSK    DC   LSG    GT  KXIP   \n",
       " \n",
       "    10th  \n",
       " 0   NaN  \n",
       " 1   NaN  \n",
       " 2   NaN  \n",
       " 3    DD  \n",
       " 4   NaN  \n",
       " 5   NaN  \n",
       " 6   NaN  \n",
       " 7   NaN  \n",
       " 8   NaN  \n",
       " 9   NaN  \n",
       " 10  NaN  \n",
       " 11  NaN  \n",
       " 12  NaN  \n",
       " 13  NaN  \n",
       " 14   MI  \n",
       " 15  SRH  \n",
       " 16   MI  ,\n",
       "                            Team Appearances               \\\n",
       "                            Team       Total First Latest   \n",
       " 0           Chennai Super Kings          15  2008   2024   \n",
       " 1                Mumbai Indians          17  2008   2024   \n",
       " 2         Kolkata Knight Riders          17  2008   2024   \n",
       " 3                Gujarat Titans           3  2022   2024   \n",
       " 4              Rajasthan Royals          15  2008   2024   \n",
       " 5           Sunrisers Hyderabad          12  2013   2024   \n",
       " 6   Royal Challengers Bengaluru          17  2008   2024   \n",
       " 7                  Punjab Kings          17  2008   2024   \n",
       " 8                Delhi Capitals          17  2008   2024   \n",
       " 9          Lucknow Super Giants           3  2022   2024   \n",
       " 10              Deccan Chargers           5  2008   2012   \n",
       " 11       Rising Pune Supergiant           2  2016   2017   \n",
       " 12                Gujarat Lions           2  2016   2017   \n",
       " 13         Kochi Tuskers Kerala           1  2011   2011   \n",
       " 14          Pune Warriors India           3  2011   2013   \n",
       " \n",
       "                                  Best result Statistics                   \\\n",
       "                                  Best result     Played  Won Lost Tied+W   \n",
       " 0   Champions (2010, 2011, 2018, 2021, 2023)        239  138   98      0   \n",
       " 1   Champions (2013, 2015, 2017, 2019, 2020)        261  142  115      2   \n",
       " 2               Champions (2012, 2014, 2024)        252  130  117      1   \n",
       " 3                           Champions (2022)         45   28   17      0   \n",
       " 4                           Champions (2008)        222  110  106      2   \n",
       " 5                           Champions (2016)        182   87   91      1   \n",
       " 6              Runners-up (2009, 2011, 2016)        256  121  128      2   \n",
       " 7                          Runners-up (2014)        246  109  133      3   \n",
       " 8                          Runners-up (2020)        252  112  134      3   \n",
       " 9                    Eliminator (2022, 2023)         44   24   19      0   \n",
       " 10                          Champions (2009)         75   29   46      0   \n",
       " 11                         Runners-up (2017)         30   15   15      0   \n",
       " 12                        Qualifier 2 (2016)         30   13   16      0   \n",
       " 13                        Group Stage (2011)         14    6    8      0   \n",
       " 14            Group Stage (2011, 2012, 2013)         46   12   33      0   \n",
       " \n",
       "                      \n",
       "    Tied+L NR   Win%  \n",
       " 0       1  2  57.74  \n",
       " 1       2  0  54.40  \n",
       " 2       3  0  52.40  \n",
       " 3       0  0  62.22  \n",
       " 4       1  2  50.91  \n",
       " 5       3  0  49.17  \n",
       " 6       1  4  48.61  \n",
       " 7       1  0  45.12  \n",
       " 8       1  2  44.44  \n",
       " 9       0  1  54.54  \n",
       " 10      0  0  38.66  \n",
       " 11      0  0  50.00  \n",
       " 12      1  0  45.00  \n",
       " 13      0  0  42.85  \n",
       " 14      0  1  26.67  ,\n",
       "                   0\n",
       " 0  Team now defunct,\n",
       "                     Batting Records                    Batting Records.1  \\\n",
       " 0                         Most runs                    Virat Kohli (RCB)   \n",
       " 1                     Highest score                    Chris Gayle (RCB)   \n",
       " 2               Highest partnership   Virat Kohli & AB de Villiers (RCB)   \n",
       " 3                        Most sixes           Chris Gayle (KKR/RCB/PBKS)   \n",
       " 4                        Most fours  Shikhar Dhawan\\t(DD/MI/DC/SRH/PBKS)   \n",
       " 5                    Most centuries                    Virat Kohli (RCB)   \n",
       " 6               Most half centuries                David Warner (SRH/DC)   \n",
       " 7             Most runs in a season                    Virat Kohli (RCB)   \n",
       " 8                   Bowling Records                      Bowling Records   \n",
       " 9                      Most wickets         Yuzvendra Chahal (MI/RCB/RR)   \n",
       " 10             Best bowling average                  Lasith Malinga (MI)   \n",
       " 11                  Most hat-tricks          Amit Mishra (DD/DC/SRH/LSG)   \n",
       " 12             Best bowling figures                  Alzarri Joseph (MI)   \n",
       " 13         Most wickets in a season                  Harshal Patel (RCB)   \n",
       " 14         Most wickets in a season                   Dwayne Bravo (CSK)   \n",
       " 15                         Fielding                             Fielding   \n",
       " 16  Most dismissals (wicket-keeper)                   MS Dhoni (CSK/RPS)   \n",
       " 17     Most catches (wicket-keeper)                   MS Dhoni (CSK/RPS)   \n",
       " 18   Most stumpings (wicket-keeper)                   MS Dhoni (CSK/RPS)   \n",
       " 19           Most catches (fielder)                    Virat Kohli (RCB)   \n",
       " 20                    Other records                        Other records   \n",
       " 21                     Most matches                   MS Dhoni (CSK/RPS)   \n",
       " 22          Most matches as captain                   MS Dhoni (CSK/RPS)   \n",
       " 23      Most matches won as captain                   MS Dhoni (CSK/RPS)   \n",
       " 24                     Team records                         Team records   \n",
       " 25                    Highest total                  Sunrisers Hyderabad   \n",
       " 26                     Lowest total          Royal Challengers Bengaluru   \n",
       " \n",
       "                                     Batting Records.2  \n",
       " 0                                                8004  \n",
       " 1               175* vs Pune Warriors (23 April 2013)  \n",
       " 2                  229 vs Gujarat Lions (14 May 2016)  \n",
       " 3                                                 357  \n",
       " 4                                                 768  \n",
       " 5                                                   8  \n",
       " 6                                                  66  \n",
       " 7                                          973 (2016)  \n",
       " 8                                     Bowling Records  \n",
       " 9                                                 205  \n",
       " 10                         19.79 (Minimum 1000 balls)  \n",
       " 11                                                  3  \n",
       " 12         6/12 vs Sunrisers Hyderabad (6 April 2019)  \n",
       " 13                                          32 (2021)  \n",
       " 14                                          32 (2013)  \n",
       " 15                                           Fielding  \n",
       " 16                                                190  \n",
       " 17                                                148  \n",
       " 18                                                 42  \n",
       " 19                                                114  \n",
       " 20                                      Other records  \n",
       " 21                                                264  \n",
       " 22                                                226  \n",
       " 23                                                133  \n",
       " 24                                       Team records  \n",
       " 25  287/3 (20) vs Royal Challengers Bengaluru (15 ...  \n",
       " 26  49 (9.4) vs Kolkata Knight Riders (23 April 2017)  ,\n",
       "     0                                                  1\n",
       " 0 NaN  This section needs to be updated. Please help ...,\n",
       "    Sponsor            Period  Estimated annual sponsorship fee\n",
       " 0      DLF         2008–2012        ₹40 crore (US$4.8 million)\n",
       " 1    Pepsi         2013–2015      ₹79.2 crore (US$9.5 million)\n",
       " 2     Vivo        2016, 2017      ₹100 crore (US$12.0 million)\n",
       " 3     Vivo  2018, 2019, 2021      ₹440 crore (US$52.7 million)\n",
       " 4  Dream11              2020      ₹222 crore (US$26.6 million)\n",
       " 5     Tata         2022–2023      ₹335 crore (US$40.1 million)\n",
       " 6     Tata         2024–2028  ₹500 crore (US$59.9 million)[90],\n",
       "                           Team                             Year  \\\n",
       "                           Team                             2023   \n",
       "                           Team                      Brand value   \n",
       " 0               Mumbai Indians    ₹9,962 crore (US$1.2 billion)   \n",
       " 1          Chennai Super Kings    ₹8,811 crore (US$1.1 billion)   \n",
       " 2        Kolkata Knight Riders    ₹8,428 crore (US$1.0 billion)   \n",
       " 3         Lucknow Super Giants  ₹8,236 crore (US$986.8 million)   \n",
       " 4               Delhi Capitals  ₹7,930 crore (US$950.2 million)   \n",
       " 5  Royal Challengers Bengaluru  ₹7,853 crore (US$940.9 million)   \n",
       " 6             Rajasthan Royals  ₹7,662 crore (US$918.1 million)   \n",
       " 7          Sunrisers Hyderabad  ₹7,432 crore (US$890.5 million)   \n",
       " 8                 Punjab Kings  ₹7,087 crore (US$849.2 million)   \n",
       " 9               Gujarat Titans  ₹6,512 crore (US$780.3 million)   \n",
       " \n",
       "                                                                       \n",
       "                             2022                         2021         \n",
       "                  Ref Brand value              Ref Brand value    Ref  \n",
       " 0              [110]        $83M  [111][112][110]        $80M  [111]  \n",
       " 1  [citation needed]        $74M  [111][112][110]        $76M  [111]  \n",
       " 2  [citation needed]        $77M  [111][112][110]        $66M  [111]  \n",
       " 3  [citation needed]        $32M  [111][112][110]         NaN  [111]  \n",
       " 4  [citation needed]        $62M  [111][112][110]        $56M  [111]  \n",
       " 5  [citation needed]        $68M  [111][112][110]        $50M  [111]  \n",
       " 6  [citation needed]        $61M  [111][112][110]        $34M  [111]  \n",
       " 7  [citation needed]        $49M  [111][112][110]        $52M  [111]  \n",
       " 8  [citation needed]        $45M  [111][112][110]        $36M  [111]  \n",
       " 9  [citation needed]        $47M  [111][112][110]         NaN  [111]  ,\n",
       "                        Territory  \\\n",
       " 0                          India   \n",
       " 1                          India   \n",
       " 2                    Afghanistan   \n",
       " 3                    Afghanistan   \n",
       " 4                      Australia   \n",
       " 5                      Australia   \n",
       " 6                     Bangladesh   \n",
       " 7                     Bangladesh   \n",
       " 8                      Indonesia   \n",
       " 9                    New Zealand   \n",
       " 10                      Pakistan   \n",
       " 11                       Ireland   \n",
       " 12                United Kingdom   \n",
       " 13                  South Africa   \n",
       " 14                     Sri Lanka   \n",
       " 15                     Sri Lanka   \n",
       " 16                 United States   \n",
       " 17  Middle East and North Africa   \n",
       " 18            Sub-Saharan Africa   \n",
       " \n",
       "                         Channels and Online streaming            Years  \n",
       " 0   Star Sports 1 HD Star Sports 1 Hindi HD Star S...        2024–2027  \n",
       " 1                                JioCinema (Internet)        2024–2027  \n",
       " 2                                  ATN HD ATN News HD             2024  \n",
       " 3                        Ariana Television (Internet)             2024  \n",
       " 4                      Foxtel Fox Cricket Kayo Sports  2023–present[1]  \n",
       " 5                            Kayo Freebies (Internet)  2023–present[1]  \n",
       " 6                                         T Sports HD             2024  \n",
       " 7                                        T Sports APP             2024  \n",
       " 8                                    Vidio (Internet)        2023[129]  \n",
       " 9                                           Colors TV     2024–present  \n",
       " 10                                         Tapmad APP             2024  \n",
       " 11                                    Sky Sports DAZN     2023–present  \n",
       " 12                                    Sky Sports DAZN     2023–present  \n",
       " 13                                         SuperSport          2023[1]  \n",
       " 14                                         Supreme TV     2023–present  \n",
       " 15                                     The Papare.com              NaN  \n",
       " 16                                          Willow TV          2023[1]  \n",
       " 17                                     Times Internet          2023[1]  \n",
       " 18                                         SuperSport     2021–present  ,\n",
       "     0                                                  1\n",
       " 0 NaN  This section may require cleanup to meet Wikip...,\n",
       "                              vteIndian Premier League  \\\n",
       " 0   Board of Control for Cricket in India Cricket ...   \n",
       " 1                                             Seasons   \n",
       " 2                                            Auctions   \n",
       " 3                                              Finals   \n",
       " 4                  Teams and grounds (As of 2024 IPL)   \n",
       " 5                                 Chennai Super Kings   \n",
       " 6                                      Delhi Capitals   \n",
       " 7                                      Gujarat Titans   \n",
       " 8                               Kolkata Knight Riders   \n",
       " 9                                Lucknow Super Giants   \n",
       " 10                                     Mumbai Indians   \n",
       " 11                                       Punjab Kings   \n",
       " 12                                   Rajasthan Royals   \n",
       " 13                        Royal Challengers Bangalore   \n",
       " 14                                Sunrisers Hyderabad   \n",
       " 15                                      Defunct teams   \n",
       " 16                             Statistics and records   \n",
       " 17                                              Lists   \n",
       " 18                                      Controversies   \n",
       " 19                                     Related topics   \n",
       " 20                     Category  Commons  WikiProject   \n",
       " \n",
       "                            vteIndian Premier League.1  \n",
       " 0   Board of Control for Cricket in India Cricket ...  \n",
       " 1   2008 2009 2010 2011 2012 2013 2014 2015 2016 2...  \n",
       " 2   2008 2009 2010 2011 2012 2013 2014 2015 2016 2...  \n",
       " 3   2008 2009 2010 2011 2012 2013 2014 2015 2016 2...  \n",
       " 4   Chennai Super Kings M. A. Chidambaram Stadium ...  \n",
       " 5                           M. A. Chidambaram Stadium  \n",
       " 6   Arun Jaitley Cricket Stadium ACA–VDCA Cricket ...  \n",
       " 7                               Narendra Modi Stadium  \n",
       " 8                                        Eden Gardens  \n",
       " 9                               Ekana Cricket Stadium  \n",
       " 10                                   Wankhede Stadium  \n",
       " 11     Maharaja Yadavindra Singh Stadium HPCA Stadium  \n",
       " 12                 Sawai Mansingh Stadium ACA Stadium  \n",
       " 13                             M. Chinnaswamy Stadium  \n",
       " 14         Rajiv Gandhi International Cricket Stadium  \n",
       " 15  Deccan Chargers Gujarat Lions Kochi Tuskers Ke...  \n",
       " 16  Teams Results Scores Batting Bowling Wicketkee...  \n",
       " 17  Awards Captains Centuries Five-wicket hauls Se...  \n",
       " 18  2012 spot-fixing case 2013 spot-fixing and bet...  \n",
       " 19  Champions League Twenty20 Lalit Modi Icon play...  \n",
       " 20                     Category  Commons  WikiProject  ,\n",
       "                               0  \\\n",
       " 0           Chennai Super Kings   \n",
       " 1                Delhi Capitals   \n",
       " 2                Gujarat Titans   \n",
       " 3         Kolkata Knight Riders   \n",
       " 4          Lucknow Super Giants   \n",
       " 5                Mumbai Indians   \n",
       " 6                  Punjab Kings   \n",
       " 7              Rajasthan Royals   \n",
       " 8   Royal Challengers Bangalore   \n",
       " 9           Sunrisers Hyderabad   \n",
       " 10                Defunct teams   \n",
       " \n",
       "                                                     1  \n",
       " 0                           M. A. Chidambaram Stadium  \n",
       " 1   Arun Jaitley Cricket Stadium ACA–VDCA Cricket ...  \n",
       " 2                               Narendra Modi Stadium  \n",
       " 3                                        Eden Gardens  \n",
       " 4                               Ekana Cricket Stadium  \n",
       " 5                                    Wankhede Stadium  \n",
       " 6      Maharaja Yadavindra Singh Stadium HPCA Stadium  \n",
       " 7                  Sawai Mansingh Stadium ACA Stadium  \n",
       " 8                              M. Chinnaswamy Stadium  \n",
       " 9          Rajiv Gandhi International Cricket Stadium  \n",
       " 10  Deccan Chargers Gujarat Lions Kochi Tuskers Ke...  ,\n",
       "                             Links to related articles  \\\n",
       " 0   vte Cricket in India BCCI Presidents Awards C....   \n",
       " 1                                vte Cricket in India   \n",
       " 2                                                BCCI   \n",
       " 3                                      National teams   \n",
       " 4                                     Members (teams)   \n",
       " ..                                                ...   \n",
       " 67                                 East and Northeast   \n",
       " 68                                               West   \n",
       " 69                                              South   \n",
       " 70                                             Others   \n",
       " 71                               †Defunct; ^ Proposed   \n",
       " \n",
       "                           Links to related articles.1 Unnamed: 2  \n",
       " 0   vte Cricket in India BCCI Presidents Awards C....        NaN  \n",
       " 1                                vte Cricket in India        NaN  \n",
       " 2   Presidents Awards C. K. Nayudu Award Polly Umr...        NaN  \n",
       " 3   Men Women India A Men's U-19 Women's U-19 Blin...        NaN  \n",
       " 4   Central Zone (Men, Women) Chhattisgarh (Men, W...        NaN  \n",
       " ..                                                ...        ...  \n",
       " 67  Indrajit Namchoom Arunachal League Assam State...        NaN  \n",
       " 68  Goa Football League Goa Women's League Gujarat...        NaN  \n",
       " 69  Bangalore Football League‎ Bangalore Super Div...        NaN  \n",
       " 70  Calcutta Hockey League Junior Badminton League...        NaN  \n",
       " 71                               †Defunct; ^ Proposed        NaN  \n",
       " \n",
       " [72 rows x 3 columns],\n",
       "                                  vte Cricket in India  \\\n",
       " 0                                                BCCI   \n",
       " 1                                      National teams   \n",
       " 2                                     Members (teams)   \n",
       " 3                           Central Zone (Men, Women)   \n",
       " 4                              East Zone (Men, Women)   \n",
       " 5                             North Zone (Men, Women)   \n",
       " 6                        North East Zone (Men, Women)   \n",
       " 7                             South Zone (Men, Women)   \n",
       " 8                              West Zone (Men, Women)   \n",
       " 9                                              Others   \n",
       " 10                                        Tournaments   \n",
       " 11                                             Senior   \n",
       " 12                                        First-class   \n",
       " 13                                            One Day   \n",
       " 14                                           Twenty20   \n",
       " 15                                              State   \n",
       " 16                                          Franchise   \n",
       " 17                                           Regional   \n",
       " 18                                              Youth   \n",
       " 19                                        First-class   \n",
       " 20                                             List A   \n",
       " 21                                                T10   \n",
       " 22                                   Sports complexes   \n",
       " 23                                               List   \n",
       " 24  History of the Indian cricket team, India–Paki...   \n",
       " \n",
       "                                vte Cricket in India.1  \n",
       " 0   Presidents Awards C. K. Nayudu Award Polly Umr...  \n",
       " 1   Men Women India A Men's U-19 Women's U-19 Blin...  \n",
       " 2   Central Zone (Men, Women) Chhattisgarh (Men, W...  \n",
       " 3   Chhattisgarh (Men, Women) Madhya Pradesh (Men,...  \n",
       " 4   Assam (Men, Women) Bengal (Men, Women) Bihar (...  \n",
       " 5   Chandigarh (Men, Women) Delhi (Men, Women) Har...  \n",
       " 6   Arunachal Pradesh (Men, Women) Manipur (Men, W...  \n",
       " 7   Andhra (Men, Women) Hyderabad (Men, Women) Kar...  \n",
       " 8   Baroda (Men, Women) Goa (Men, Women) Gujarat (...  \n",
       " 9   Association of Indian Universities Cricket Clu...  \n",
       " 10  SeniorFirst-class Ranji Trophy Duleep Trophy I...  \n",
       " 11  First-class Ranji Trophy Duleep Trophy Irani C...  \n",
       " 12  Ranji Trophy Duleep Trophy Irani Cup Senior Wo...  \n",
       " 13  Deodhar Trophy Vijay Hazare Trophy Women's Sen...  \n",
       " 14  State Syed Mushtaq Ali Trophy Women's Senior T...  \n",
       " 15  Syed Mushtaq Ali Trophy Women's Senior T20 Tro...  \n",
       " 16  Indian Premier League Women's Premier League I...  \n",
       " 17  Andhra Premier League Bengal Pro T20 League De...  \n",
       " 18  First-class C. K. Nayudu Trophy Cooch Behar Tr...  \n",
       " 19             C. K. Nayudu Trophy Cooch Behar Trophy  \n",
       " 20  Vinoo Mankad Trophy Vizzy Trophy Rohinton Bari...  \n",
       " 21                       Indian Street Premier League  \n",
       " 22                           National Cricket Academy  \n",
       " 23  Coaches Captains Selectors Test wicket-keepers...  \n",
       " 24  History of the Indian cricket team, India–Paki...  ,\n",
       "                               0  \\\n",
       " 0     Central Zone (Men, Women)   \n",
       " 1        East Zone (Men, Women)   \n",
       " 2       North Zone (Men, Women)   \n",
       " 3  North East Zone (Men, Women)   \n",
       " 4       South Zone (Men, Women)   \n",
       " 5        West Zone (Men, Women)   \n",
       " 6                        Others   \n",
       " \n",
       "                                                    1  \n",
       " 0  Chhattisgarh (Men, Women) Madhya Pradesh (Men,...  \n",
       " 1  Assam (Men, Women) Bengal (Men, Women) Bihar (...  \n",
       " 2  Chandigarh (Men, Women) Delhi (Men, Women) Har...  \n",
       " 3  Arunachal Pradesh (Men, Women) Manipur (Men, W...  \n",
       " 4  Andhra (Men, Women) Hyderabad (Men, Women) Kar...  \n",
       " 5  Baroda (Men, Women) Goa (Men, Women) Gujarat (...  \n",
       " 6  Association of Indian Universities Cricket Clu...  ,\n",
       "               0                                                  1\n",
       " 0        Senior  First-class Ranji Trophy Duleep Trophy Irani C...\n",
       " 1   First-class  Ranji Trophy Duleep Trophy Irani Cup Senior Wo...\n",
       " 2       One Day  Deodhar Trophy Vijay Hazare Trophy Women's Sen...\n",
       " 3      Twenty20  State Syed Mushtaq Ali Trophy Women's Senior T...\n",
       " 4         State  Syed Mushtaq Ali Trophy Women's Senior T20 Tro...\n",
       " 5     Franchise  Indian Premier League Women's Premier League I...\n",
       " 6      Regional  Andhra Premier League Bengal Pro T20 League De...\n",
       " 7         Youth  First-class C. K. Nayudu Trophy Cooch Behar Tr...\n",
       " 8   First-class             C. K. Nayudu Trophy Cooch Behar Trophy\n",
       " 9        List A  Vinoo Mankad Trophy Vizzy Trophy Rohinton Bari...\n",
       " 10          T10                       Indian Street Premier League,\n",
       "              0                                                  1\n",
       " 0  First-class  Ranji Trophy Duleep Trophy Irani Cup Senior Wo...\n",
       " 1      One Day  Deodhar Trophy Vijay Hazare Trophy Women's Sen...\n",
       " 2     Twenty20  State Syed Mushtaq Ali Trophy Women's Senior T...\n",
       " 3        State  Syed Mushtaq Ali Trophy Women's Senior T20 Tro...\n",
       " 4    Franchise  Indian Premier League Women's Premier League I...\n",
       " 5     Regional  Andhra Premier League Bengal Pro T20 League De...,\n",
       "            0                                                  1\n",
       " 0      State  Syed Mushtaq Ali Trophy Women's Senior T20 Tro...\n",
       " 1  Franchise  Indian Premier League Women's Premier League I...\n",
       " 2   Regional  Andhra Premier League Bengal Pro T20 League De...,\n",
       "              0                                                  1\n",
       " 0  First-class             C. K. Nayudu Trophy Cooch Behar Trophy\n",
       " 1       List A  Vinoo Mankad Trophy Vizzy Trophy Rohinton Bari...,\n",
       "    vteTwenty20 cricket leagues  \\\n",
       " 0                      Current   \n",
       " 1                       Africa   \n",
       " 2                     Americas   \n",
       " 3                         Asia   \n",
       " 4                       Europe   \n",
       " 5                      Oceania   \n",
       " 6                      Defunct   \n",
       " 7                International   \n",
       " 8                       Africa   \n",
       " 9                     Americas   \n",
       " 10                        Asia   \n",
       " 11                      Europe   \n",
       " 12                     Oceania   \n",
       " \n",
       "                         vteTwenty20 cricket leagues.1  \n",
       " 0   Africa CSA Provincial Twenty20 (South Africa) ...  \n",
       " 1   CSA Provincial Twenty20 (South Africa) Women's...  \n",
       " 2   Caribbean Premier League (West Indies) Twenty2...  \n",
       " 3   Afghanistan Premier League (Afghanistan) Shpag...  \n",
       " 4   T20 Blast (England and Wales) Women's Twenty20...  \n",
       " 5   Big Bash League (Australia) Women's Big Bash L...  \n",
       " 6   International Champions League Twenty20 (Inter...  \n",
       " 7   Champions League Twenty20 (International) Stan...  \n",
       " 8   Mzansi Super League (South Africa) Africa T20 ...  \n",
       " 9   CIBC National Cricket League (Canada) American...  \n",
       " 10  Etisalat Sixes T20 Tournament (Afghanistan) Na...  \n",
       " 11  Charlotte Edwards Cup (England and Wales) Euro...  \n",
       " 12  Australian Women's Twenty20 Cup (Australia) KF...  ,\n",
       "           0                                                  1\n",
       " 0    Africa  CSA Provincial Twenty20 (South Africa) Women's...\n",
       " 1  Americas  Caribbean Premier League (West Indies) Twenty2...\n",
       " 2      Asia  Afghanistan Premier League (Afghanistan) Shpag...\n",
       " 3    Europe  T20 Blast (England and Wales) Women's Twenty20...\n",
       " 4   Oceania  Big Bash League (Australia) Women's Big Bash L...,\n",
       "                0                                                  1\n",
       " 0  International  Champions League Twenty20 (International) Stan...\n",
       " 1         Africa  Mzansi Super League (South Africa) Africa T20 ...\n",
       " 2       Americas  CIBC National Cricket League (Canada) American...\n",
       " 3           Asia  Etisalat Sixes T20 Tournament (Afghanistan) Na...\n",
       " 4         Europe  Charlotte Edwards Cup (England and Wales) Euro...\n",
       " 5        Oceania  Australian Women's Twenty20 Cup (Australia) KF...,\n",
       "   vteChampions League Twenty20  \\\n",
       " 0                     Editions   \n",
       " 1                       Squads   \n",
       " 2                        Lists   \n",
       " 3       Qualifying tournaments   \n",
       " 4                         2014   \n",
       " 5                    2009–2013   \n",
       " \n",
       "                       vteChampions League Twenty20.1  \\\n",
       " 0                 2008 2009 2010 2011 2012 2013 2014   \n",
       " 1                 2008 2009 2010 2011 2012 2013 2014   \n",
       " 2                    Records and statistics Captains   \n",
       " 3  2014 Big Bash League Caribbean Premier League ...   \n",
       " 4  Big Bash League Caribbean Premier League Haier...   \n",
       " 5  Sri Lanka Premier League (2012) Friends Life t...   \n",
       " \n",
       "    vteChampions League Twenty20.2  \n",
       " 0                             NaN  \n",
       " 1                             NaN  \n",
       " 2                             NaN  \n",
       " 3                             NaN  \n",
       " 4                             NaN  \n",
       " 5                             NaN  ,\n",
       "            0                                                  1\n",
       " 0       2014  Big Bash League Caribbean Premier League Haier...\n",
       " 1  2009–2013  Sri Lanka Premier League (2012) Friends Life t...,\n",
       "    vteSports leagues of India  \\\n",
       " 0                    National   \n",
       " 1                  Basketball   \n",
       " 2                     Cricket   \n",
       " 3                 First class   \n",
       " 4                      List A   \n",
       " 5                    Twenty20   \n",
       " 6                         T10   \n",
       " 7                       Youth   \n",
       " 8                Field hockey   \n",
       " 9                    Football   \n",
       " 10                    Kabbadi   \n",
       " 11                Motorsports   \n",
       " 12                Volley Ball   \n",
       " 13                     Others   \n",
       " 14                   Regional   \n",
       " 15                    Cricket   \n",
       " 16                   Football   \n",
       " 17          North and Central   \n",
       " 18         East and Northeast   \n",
       " 19                       West   \n",
       " 20                      South   \n",
       " 21                     Others   \n",
       " 22       †Defunct; ^ Proposed   \n",
       " \n",
       "                          vteSports leagues of India.1  \n",
       " 0   Basketball 3x3 Pro Basketball League Elite Pro...  \n",
       " 1   3x3 Pro Basketball League Elite Pro Basketball...  \n",
       " 2   First class Duleep Trophy Irani Trophy Senior ...  \n",
       " 3   Duleep Trophy Irani Trophy Senior Women's Inte...  \n",
       " 4   Deodhar Trophy Senior Women's One Day Challeng...  \n",
       " 5   Indian Cricket League† Indian Premier League S...  \n",
       " 6                        Indian Street Premier League  \n",
       " 7   CK Nayudu Trophy Cooch Behar Trophy Rohinton B...  \n",
       " 8   Hockey India League Premier Hockey League† Wor...  \n",
       " 9   Development League† Elite Football League† I-L...  \n",
       " 10  Pro Kabaddi League Real Kabaddi League Women's...  \n",
       " 11  I1 Super Series^ Indian Racing League Indian S...  \n",
       " 12  Indian Volley League† Prime Volleyball League ...  \n",
       " 13  Equestrian Premier League Futsal Club Champion...  \n",
       " 14  Cricket Andhra Premier League Bengal Pro T20 L...  \n",
       " 15  Andhra Premier League Bengal Pro T20 League De...  \n",
       " 16  North and Central Chhattisgarh Football League...  \n",
       " 17  Chhattisgarh Football League Championship FD S...  \n",
       " 18  Indrajit Namchoom Arunachal League Assam State...  \n",
       " 19  Goa Football League Goa Women's League Gujarat...  \n",
       " 20  Bangalore Football League‎ Bangalore Super Div...  \n",
       " 21  Calcutta Hockey League Junior Badminton League...  \n",
       " 22                               †Defunct; ^ Proposed  ,\n",
       "                0                                                  1\n",
       " 0     Basketball  3x3 Pro Basketball League Elite Pro Basketball...\n",
       " 1        Cricket  First class Duleep Trophy Irani Trophy Senior ...\n",
       " 2    First class  Duleep Trophy Irani Trophy Senior Women's Inte...\n",
       " 3         List A  Deodhar Trophy Senior Women's One Day Challeng...\n",
       " 4       Twenty20  Indian Cricket League† Indian Premier League S...\n",
       " 5            T10                       Indian Street Premier League\n",
       " 6          Youth  CK Nayudu Trophy Cooch Behar Trophy Rohinton B...\n",
       " 7   Field hockey  Hockey India League Premier Hockey League† Wor...\n",
       " 8       Football  Development League† Elite Football League† I-L...\n",
       " 9        Kabbadi  Pro Kabaddi League Real Kabaddi League Women's...\n",
       " 10   Motorsports  I1 Super Series^ Indian Racing League Indian S...\n",
       " 11   Volley Ball  Indian Volley League† Prime Volleyball League ...\n",
       " 12        Others  Equestrian Premier League Futsal Club Champion...,\n",
       "              0                                                  1\n",
       " 0  First class  Duleep Trophy Irani Trophy Senior Women's Inte...\n",
       " 1       List A  Deodhar Trophy Senior Women's One Day Challeng...\n",
       " 2     Twenty20  Indian Cricket League† Indian Premier League S...\n",
       " 3          T10                       Indian Street Premier League\n",
       " 4        Youth  CK Nayudu Trophy Cooch Behar Trophy Rohinton B...,\n",
       "                     0                                                  1\n",
       " 0             Cricket  Andhra Premier League Bengal Pro T20 League De...\n",
       " 1            Football  North and Central Chhattisgarh Football League...\n",
       " 2   North and Central  Chhattisgarh Football League Championship FD S...\n",
       " 3  East and Northeast  Indrajit Namchoom Arunachal League Assam State...\n",
       " 4                West  Goa Football League Goa Women's League Gujarat...\n",
       " 5               South  Bangalore Football League‎ Bangalore Super Div...\n",
       " 6              Others  Calcutta Hockey League Junior Badminton League...,\n",
       "                     0                                                  1\n",
       " 0   North and Central  Chhattisgarh Football League Championship FD S...\n",
       " 1  East and Northeast  Indrajit Namchoom Arunachal League Assam State...\n",
       " 2                West  Goa Football League Goa Women's League Gujarat...\n",
       " 3               South  Bangalore Football League‎ Bangalore Super Div...,\n",
       "                                        0        1\n",
       " 0  Authority control databases: National  Germany]"
      ]
     },
     "execution_count": 47,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "d"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "id": "22aa0288-2b44-446b-95b7-ab3dd115fb6b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "40"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(d)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "id": "f3184cf9-90b6-4d6e-8c4f-952a99feeab2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "list"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "type(d)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "id": "868d4f72-05e0-4c22-91a0-f7cfc5c3d9e3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Countries</td>\n",
       "      <td>India</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Administrator</td>\n",
       "      <td>Board of Control for Cricket in India (BCCI)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Headquarters</td>\n",
       "      <td>Cricket Centre, Churchgate, Mumbai, Maharashtra</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Format</td>\n",
       "      <td>Twenty20</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>First edition</td>\n",
       "      <td>2008</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Latest edition</td>\n",
       "      <td>2024</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Next edition</td>\n",
       "      <td>2025</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Tournament format</td>\n",
       "      <td>Round-robin format with group system and playoffs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Number of teams</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Current champion</td>\n",
       "      <td>Kolkata Knight Riders (3rd title)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Most successful</td>\n",
       "      <td>Chennai Super Kings Mumbai Indians (5 titles e...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Most runs</td>\n",
       "      <td>Virat Kohli (8,004)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Most wickets</td>\n",
       "      <td>Yuzvendra Chahal (205)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>TV</td>\n",
       "      <td>India Star Sports (TV)[1] JioCinema (Internet)...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Website</td>\n",
       "      <td>iplt20.com</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                    0                                                  1\n",
       "0                 NaN                                                NaN\n",
       "1           Countries                                              India\n",
       "2       Administrator       Board of Control for Cricket in India (BCCI)\n",
       "3        Headquarters    Cricket Centre, Churchgate, Mumbai, Maharashtra\n",
       "4              Format                                           Twenty20\n",
       "5       First edition                                               2008\n",
       "6      Latest edition                                               2024\n",
       "7        Next edition                                               2025\n",
       "8   Tournament format  Round-robin format with group system and playoffs\n",
       "9     Number of teams                                                 10\n",
       "10   Current champion                  Kolkata Knight Riders (3rd title)\n",
       "11    Most successful  Chennai Super Kings Mumbai Indians (5 titles e...\n",
       "12          Most runs                                Virat Kohli (8,004)\n",
       "13       Most wickets                             Yuzvendra Chahal (205)\n",
       "14                 TV  India Star Sports (TV)[1] JioCinema (Internet)...\n",
       "15            Website                                         iplt20.com"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "d[0] # ----  first data table will be scrapped"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "cae3a0c9-c696-4843-a9af-c20bba0e1315",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Season</th>\n",
       "      <th>Winners</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2008</td>\n",
       "      <td>Rajasthan Royals</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2009</td>\n",
       "      <td>Deccan Chargers</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2010</td>\n",
       "      <td>Chennai Super Kings</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2011</td>\n",
       "      <td>Chennai Super Kings (2)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2012</td>\n",
       "      <td>Kolkata Knight Riders</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>2013</td>\n",
       "      <td>Mumbai Indians</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>2014</td>\n",
       "      <td>Kolkata Knight Riders (2)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>2015</td>\n",
       "      <td>Mumbai Indians (2)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>2016</td>\n",
       "      <td>Sunrisers Hyderabad</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>2017</td>\n",
       "      <td>Mumbai Indians (3)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>2018</td>\n",
       "      <td>Chennai Super Kings (3)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>2019</td>\n",
       "      <td>Mumbai Indians (4)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>2020</td>\n",
       "      <td>Mumbai Indians (5)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>2021</td>\n",
       "      <td>Chennai Super Kings (4)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>2022</td>\n",
       "      <td>Gujarat Titans</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>2023</td>\n",
       "      <td>Chennai Super Kings (5)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>2024</td>\n",
       "      <td>Kolkata Knight Riders (3)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    Season                    Winners\n",
       "0     2008           Rajasthan Royals\n",
       "1     2009            Deccan Chargers\n",
       "2     2010        Chennai Super Kings\n",
       "3     2011    Chennai Super Kings (2)\n",
       "4     2012      Kolkata Knight Riders\n",
       "5     2013             Mumbai Indians\n",
       "6     2014  Kolkata Knight Riders (2)\n",
       "7     2015         Mumbai Indians (2)\n",
       "8     2016        Sunrisers Hyderabad\n",
       "9     2017         Mumbai Indians (3)\n",
       "10    2018    Chennai Super Kings (3)\n",
       "11    2019         Mumbai Indians (4)\n",
       "12    2020         Mumbai Indians (5)\n",
       "13    2021    Chennai Super Kings (4)\n",
       "14    2022             Gujarat Titans\n",
       "15    2023    Chennai Super Kings (5)\n",
       "16    2024  Kolkata Knight Riders (3)"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "d[2] ## --- third data table will be scrapped"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "id": "fe0ccf50-056e-457d-8693-1406134c7fa9",
   "metadata": {},
   "outputs": [],
   "source": [
    "## If i Want to scrapped a particular table from those 40 table i need to select a unique value from the table which i want\n",
    "## for ex\n",
    "d =pd.read_html(\"https://en.wikipedia.org/wiki/Indian_Premier_League\",match=\"Sahara India Pariwar\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "id": "c2ac23e5-951a-42b6-89cf-e146a7838fad",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1"
      ]
     },
     "execution_count": 64,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "len(d)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "id": "573799de-7e8c-4023-b6f5-b799d42a01a0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Team</th>\n",
       "      <th>City</th>\n",
       "      <th>State</th>\n",
       "      <th>Home ground</th>\n",
       "      <th>Debut</th>\n",
       "      <th>Dissolved</th>\n",
       "      <th>Owner(s)</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Deccan Chargers</td>\n",
       "      <td>Hyderabad</td>\n",
       "      <td>Andhra Pradesh[75]</td>\n",
       "      <td>Rajiv Gandhi Stadium</td>\n",
       "      <td>2008</td>\n",
       "      <td>2012</td>\n",
       "      <td>Deccan Chronicle</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Kochi Tuskers Kerala</td>\n",
       "      <td>Kochi</td>\n",
       "      <td>Kerala</td>\n",
       "      <td>Jawaharlal Nehru Stadium</td>\n",
       "      <td>2011</td>\n",
       "      <td>2011</td>\n",
       "      <td>Kochi Cricket Pvt Ltd</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Pune Warriors India</td>\n",
       "      <td>Pune</td>\n",
       "      <td>Maharashtra</td>\n",
       "      <td>Maharashtra Cricket Association Stadium</td>\n",
       "      <td>2011</td>\n",
       "      <td>2013</td>\n",
       "      <td>Sahara India Pariwar</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>Rising Pune Supergiant</td>\n",
       "      <td>Pune</td>\n",
       "      <td>Maharashtra</td>\n",
       "      <td>Maharashtra Cricket Association Stadium</td>\n",
       "      <td>2016</td>\n",
       "      <td>2018</td>\n",
       "      <td>RP-Sanjiv Goenka Group</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Gujarat Lions</td>\n",
       "      <td>Rajkot</td>\n",
       "      <td>Gujarat</td>\n",
       "      <td>Saurashtra Cricket Association Stadium</td>\n",
       "      <td>2016</td>\n",
       "      <td>2018</td>\n",
       "      <td>Intex Technologies</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                     Team       City               State  \\\n",
       "0         Deccan Chargers  Hyderabad  Andhra Pradesh[75]   \n",
       "1    Kochi Tuskers Kerala      Kochi              Kerala   \n",
       "2     Pune Warriors India       Pune         Maharashtra   \n",
       "3  Rising Pune Supergiant       Pune         Maharashtra   \n",
       "4           Gujarat Lions     Rajkot             Gujarat   \n",
       "\n",
       "                               Home ground  Debut  Dissolved  \\\n",
       "0                     Rajiv Gandhi Stadium   2008       2012   \n",
       "1                 Jawaharlal Nehru Stadium   2011       2011   \n",
       "2  Maharashtra Cricket Association Stadium   2011       2013   \n",
       "3  Maharashtra Cricket Association Stadium   2016       2018   \n",
       "4   Saurashtra Cricket Association Stadium   2016       2018   \n",
       "\n",
       "                 Owner(s)  \n",
       "0        Deccan Chronicle  \n",
       "1   Kochi Cricket Pvt Ltd  \n",
       "2    Sahara India Pariwar  \n",
       "3  RP-Sanjiv Goenka Group  \n",
       "4      Intex Technologies  "
      ]
     },
     "execution_count": 66,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "d[0]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "id": "8b87a88c-c2c1-4409-bc85-d8dd88ee2b55",
   "metadata": {},
   "outputs": [],
   "source": [
    "d[0].to_html(\"iplwikipedia.html\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "aa0f985f-306c-40f4-9ae3-99a0993b32cc",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}