-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sports Analytics Python Notebook
7847 lines (7847 loc) · 571 KB
/
Sports Analytics Python Notebook
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
{
"cells": [
{
"cell_type": "code",
"execution_count": 61,
"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>Age</th>\n",
" <th>Nationality</th>\n",
" <th>Overall Score</th>\n",
" <th>Potential</th>\n",
" <th>Club</th>\n",
" <th>League</th>\n",
" <th>Value</th>\n",
" <th>Wage</th>\n",
" <th>Preferred Foot</th>\n",
" <th>International Reputation</th>\n",
" <th>...</th>\n",
" <th>Composure</th>\n",
" <th>Marking</th>\n",
" <th>StandingTackle</th>\n",
" <th>SlidingTackle</th>\n",
" <th>GKDiving</th>\n",
" <th>GKHandling</th>\n",
" <th>GKKicking</th>\n",
" <th>GKPositioning</th>\n",
" <th>GKReflexes</th>\n",
" <th>Release Clause</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Name</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>David Neres</th>\n",
" <td>21</td>\n",
" <td>Brazil</td>\n",
" <td>79</td>\n",
" <td>86</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€18M</td>\n",
" <td>€18K</td>\n",
" <td>Left</td>\n",
" <td>2</td>\n",
" <td>...</td>\n",
" <td>78</td>\n",
" <td>32</td>\n",
" <td>32</td>\n",
" <td>32</td>\n",
" <td>14</td>\n",
" <td>10</td>\n",
" <td>5</td>\n",
" <td>13</td>\n",
" <td>6</td>\n",
" <td>€28.8M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>N. Tagliafico</th>\n",
" <td>25</td>\n",
" <td>Argentina</td>\n",
" <td>80</td>\n",
" <td>82</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€15M</td>\n",
" <td>€20K</td>\n",
" <td>Left</td>\n",
" <td>2</td>\n",
" <td>...</td>\n",
" <td>73</td>\n",
" <td>78</td>\n",
" <td>78</td>\n",
" <td>78</td>\n",
" <td>13</td>\n",
" <td>9</td>\n",
" <td>10</td>\n",
" <td>15</td>\n",
" <td>16</td>\n",
" <td>€22.1M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>H. Bandé</th>\n",
" <td>19</td>\n",
" <td>Burkina Faso</td>\n",
" <td>72</td>\n",
" <td>84</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€5.5M</td>\n",
" <td>€7K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>63</td>\n",
" <td>22</td>\n",
" <td>41</td>\n",
" <td>12</td>\n",
" <td>7</td>\n",
" <td>9</td>\n",
" <td>15</td>\n",
" <td>15</td>\n",
" <td>11</td>\n",
" <td>€8.8M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>V. Černý</th>\n",
" <td>20</td>\n",
" <td>Czech Republic</td>\n",
" <td>68</td>\n",
" <td>75</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€1.3M</td>\n",
" <td>€6K</td>\n",
" <td>Left</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>62</td>\n",
" <td>27</td>\n",
" <td>20</td>\n",
" <td>19</td>\n",
" <td>11</td>\n",
" <td>10</td>\n",
" <td>10</td>\n",
" <td>11</td>\n",
" <td>11</td>\n",
" <td>€2M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>L. Orejuela</th>\n",
" <td>22</td>\n",
" <td>Colombia</td>\n",
" <td>67</td>\n",
" <td>73</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€875K</td>\n",
" <td>€5K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>60</td>\n",
" <td>58</td>\n",
" <td>66</td>\n",
" <td>69</td>\n",
" <td>7</td>\n",
" <td>15</td>\n",
" <td>12</td>\n",
" <td>12</td>\n",
" <td>11</td>\n",
" <td>€1.4M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Marcos Llorente</th>\n",
" <td>23</td>\n",
" <td>Spain</td>\n",
" <td>79</td>\n",
" <td>87</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€16M</td>\n",
" <td>€110K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>76</td>\n",
" <td>76</td>\n",
" <td>79</td>\n",
" <td>72</td>\n",
" <td>13</td>\n",
" <td>6</td>\n",
" <td>6</td>\n",
" <td>11</td>\n",
" <td>15</td>\n",
" <td>€36M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>K. Navas</th>\n",
" <td>31</td>\n",
" <td>Costa Rica</td>\n",
" <td>87</td>\n",
" <td>87</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€30.5M</td>\n",
" <td>€195K</td>\n",
" <td>Right</td>\n",
" <td>3</td>\n",
" <td>...</td>\n",
" <td>67</td>\n",
" <td>28</td>\n",
" <td>14</td>\n",
" <td>14</td>\n",
" <td>90</td>\n",
" <td>81</td>\n",
" <td>75</td>\n",
" <td>82</td>\n",
" <td>90</td>\n",
" <td>€62.5M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>T. Courtois</th>\n",
" <td>26</td>\n",
" <td>Belgium</td>\n",
" <td>89</td>\n",
" <td>90</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€53.5M</td>\n",
" <td>€240K</td>\n",
" <td>Left</td>\n",
" <td>4</td>\n",
" <td>...</td>\n",
" <td>66</td>\n",
" <td>20</td>\n",
" <td>18</td>\n",
" <td>16</td>\n",
" <td>85</td>\n",
" <td>91</td>\n",
" <td>72</td>\n",
" <td>86</td>\n",
" <td>88</td>\n",
" <td>€113.7M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Kiko Casilla</th>\n",
" <td>31</td>\n",
" <td>Spain</td>\n",
" <td>79</td>\n",
" <td>79</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€7.5M</td>\n",
" <td>€105K</td>\n",
" <td>Right</td>\n",
" <td>2</td>\n",
" <td>...</td>\n",
" <td>60</td>\n",
" <td>26</td>\n",
" <td>15</td>\n",
" <td>11</td>\n",
" <td>74</td>\n",
" <td>81</td>\n",
" <td>79</td>\n",
" <td>81</td>\n",
" <td>77</td>\n",
" <td>€15.4M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>L. Zidane</th>\n",
" <td>20</td>\n",
" <td>France</td>\n",
" <td>62</td>\n",
" <td>71</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€350K</td>\n",
" <td>€9K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>36</td>\n",
" <td>13</td>\n",
" <td>11</td>\n",
" <td>13</td>\n",
" <td>65</td>\n",
" <td>60</td>\n",
" <td>61</td>\n",
" <td>62</td>\n",
" <td>61</td>\n",
" <td>€788K</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>342 rows × 80 columns</p>\n",
"</div>"
],
"text/plain": [
" Age Nationality Overall Score Potential Club \\\n",
"Name \n",
"David Neres 21 Brazil 79 86 Ajax \n",
"N. Tagliafico 25 Argentina 80 82 Ajax \n",
"H. Bandé 19 Burkina Faso 72 84 Ajax \n",
"V. Černý 20 Czech Republic 68 75 Ajax \n",
"L. Orejuela 22 Colombia 67 73 Ajax \n",
"... ... ... ... ... ... \n",
"Marcos Llorente 23 Spain 79 87 Real Madrid \n",
"K. Navas 31 Costa Rica 87 87 Real Madrid \n",
"T. Courtois 26 Belgium 89 90 Real Madrid \n",
"Kiko Casilla 31 Spain 79 79 Real Madrid \n",
"L. Zidane 20 France 62 71 Real Madrid \n",
"\n",
" League Value Wage Preferred Foot \\\n",
"Name \n",
"David Neres Eredivisie €18M €18K Left \n",
"N. Tagliafico Eredivisie €15M €20K Left \n",
"H. Bandé Eredivisie €5.5M €7K Right \n",
"V. Černý Eredivisie €1.3M €6K Left \n",
"L. Orejuela Eredivisie €875K €5K Right \n",
"... ... ... ... ... \n",
"Marcos Llorente La Liga €16M €110K Right \n",
"K. Navas La Liga €30.5M €195K Right \n",
"T. Courtois La Liga €53.5M €240K Left \n",
"Kiko Casilla La Liga €7.5M €105K Right \n",
"L. Zidane La Liga €350K €9K Right \n",
"\n",
" International Reputation ... Composure Marking \\\n",
"Name ... \n",
"David Neres 2 ... 78 32 \n",
"N. Tagliafico 2 ... 73 78 \n",
"H. Bandé 1 ... 63 22 \n",
"V. Černý 1 ... 62 27 \n",
"L. Orejuela 1 ... 60 58 \n",
"... ... ... ... ... \n",
"Marcos Llorente 1 ... 76 76 \n",
"K. Navas 3 ... 67 28 \n",
"T. Courtois 4 ... 66 20 \n",
"Kiko Casilla 2 ... 60 26 \n",
"L. Zidane 1 ... 36 13 \n",
"\n",
" StandingTackle SlidingTackle GKDiving GKHandling GKKicking \\\n",
"Name \n",
"David Neres 32 32 14 10 5 \n",
"N. Tagliafico 78 78 13 9 10 \n",
"H. Bandé 41 12 7 9 15 \n",
"V. Černý 20 19 11 10 10 \n",
"L. Orejuela 66 69 7 15 12 \n",
"... ... ... ... ... ... \n",
"Marcos Llorente 79 72 13 6 6 \n",
"K. Navas 14 14 90 81 75 \n",
"T. Courtois 18 16 85 91 72 \n",
"Kiko Casilla 15 11 74 81 79 \n",
"L. Zidane 11 13 65 60 61 \n",
"\n",
" GKPositioning GKReflexes Release Clause \n",
"Name \n",
"David Neres 13 6 €28.8M \n",
"N. Tagliafico 15 16 €22.1M \n",
"H. Bandé 15 11 €8.8M \n",
"V. Černý 11 11 €2M \n",
"L. Orejuela 12 11 €1.4M \n",
"... ... ... ... \n",
"Marcos Llorente 11 15 €36M \n",
"K. Navas 82 90 €62.5M \n",
"T. Courtois 86 88 €113.7M \n",
"Kiko Casilla 81 77 €15.4M \n",
"L. Zidane 62 61 €788K \n",
"\n",
"[342 rows x 80 columns]"
]
},
"execution_count": 61,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"df=pd.read_csv(\"C:/datasets/Sports Analytics Data set.csv\",encoding='utf-8',index_col=0)\n",
"df"
]
},
{
"cell_type": "code",
"execution_count": 62,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<class 'pandas.core.frame.DataFrame'>\n",
"Index: 342 entries, David Neres to L. Zidane\n",
"Data columns (total 80 columns):\n",
" # Column Non-Null Count Dtype \n",
"--- ------ -------------- ----- \n",
" 0 Age 342 non-null int64 \n",
" 1 Nationality 342 non-null object \n",
" 2 Overall Score 342 non-null int64 \n",
" 3 Potential 342 non-null int64 \n",
" 4 Club 342 non-null object \n",
" 5 League 342 non-null object \n",
" 6 Value 342 non-null object \n",
" 7 Wage 342 non-null object \n",
" 8 Preferred Foot 342 non-null object \n",
" 9 International Reputation 342 non-null int64 \n",
" 10 Weak Foot 342 non-null int64 \n",
" 11 Skill Moves 342 non-null int64 \n",
" 12 Work Rate 342 non-null object \n",
" 13 Body Type 342 non-null object \n",
" 14 Position 342 non-null object \n",
" 15 Loaned From 5 non-null object \n",
" 16 Contract Valid Until 342 non-null int64 \n",
" 17 Height 342 non-null object \n",
" 18 Weight 342 non-null object \n",
" 19 LS 304 non-null float64\n",
" 20 ST 304 non-null float64\n",
" 21 RS 304 non-null float64\n",
" 22 LW 304 non-null float64\n",
" 23 LF 304 non-null float64\n",
" 24 CF 304 non-null float64\n",
" 25 RF 304 non-null float64\n",
" 26 RW 304 non-null float64\n",
" 27 LAM 304 non-null float64\n",
" 28 CAM 304 non-null float64\n",
" 29 RAM 304 non-null float64\n",
" 30 LM 304 non-null float64\n",
" 31 LCM 304 non-null float64\n",
" 32 CM 304 non-null float64\n",
" 33 RCM 304 non-null float64\n",
" 34 RM 304 non-null float64\n",
" 35 LWB 304 non-null float64\n",
" 36 LDM 304 non-null float64\n",
" 37 CDM 304 non-null float64\n",
" 38 RDM 304 non-null float64\n",
" 39 RWB 304 non-null float64\n",
" 40 LB 304 non-null float64\n",
" 41 LCB 304 non-null float64\n",
" 42 CB 304 non-null float64\n",
" 43 RCB 304 non-null float64\n",
" 44 RB 304 non-null float64\n",
" 45 Crossing 342 non-null int64 \n",
" 46 Finishing 342 non-null int64 \n",
" 47 HeadingAccuracy 342 non-null int64 \n",
" 48 ShortPassing 342 non-null int64 \n",
" 49 Volleys 342 non-null int64 \n",
" 50 Dribbling 342 non-null int64 \n",
" 51 Curve 342 non-null int64 \n",
" 52 FKAccuracy 342 non-null int64 \n",
" 53 LongPassing 342 non-null int64 \n",
" 54 BallControl 342 non-null int64 \n",
" 55 Acceleration 342 non-null int64 \n",
" 56 SprintSpeed 342 non-null int64 \n",
" 57 Agility 342 non-null int64 \n",
" 58 Reactions 342 non-null int64 \n",
" 59 Balance 342 non-null int64 \n",
" 60 ShotPower 342 non-null int64 \n",
" 61 Jumping 342 non-null int64 \n",
" 62 Stamina 342 non-null int64 \n",
" 63 Strength 342 non-null int64 \n",
" 64 LongShots 342 non-null int64 \n",
" 65 Aggression 342 non-null int64 \n",
" 66 Interceptions 342 non-null int64 \n",
" 67 Positioning 342 non-null int64 \n",
" 68 Vision 342 non-null int64 \n",
" 69 Penalties 342 non-null int64 \n",
" 70 Composure 342 non-null int64 \n",
" 71 Marking 342 non-null int64 \n",
" 72 StandingTackle 342 non-null int64 \n",
" 73 SlidingTackle 342 non-null int64 \n",
" 74 GKDiving 342 non-null int64 \n",
" 75 GKHandling 342 non-null int64 \n",
" 76 GKKicking 342 non-null int64 \n",
" 77 GKPositioning 342 non-null int64 \n",
" 78 GKReflexes 342 non-null int64 \n",
" 79 Release Clause 337 non-null object \n",
"dtypes: float64(26), int64(41), object(13)\n",
"memory usage: 216.4+ KB\n"
]
}
],
"source": [
"df.info()"
]
},
{
"cell_type": "code",
"execution_count": 63,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Age 31\n",
"Nationality Argentina\n",
"Overall Score 94\n",
"Potential 94\n",
"Club FC Barcelona\n",
" ... \n",
"GKHandling 11\n",
"GKKicking 15\n",
"GKPositioning 14\n",
"GKReflexes 8\n",
"Release Clause €226.5M\n",
"Name: L. Messi, Length: 80, dtype: object"
]
},
"execution_count": 63,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.loc[\"L. Messi\"]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Filtering columns of players less than or equal to 26 yrs"
]
},
{
"cell_type": "code",
"execution_count": 64,
"metadata": {},
"outputs": [],
"source": [
"dff = df[df[\"Age\"]<=26]"
]
},
{
"cell_type": "code",
"execution_count": 65,
"metadata": {
"scrolled": true
},
"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>Age</th>\n",
" <th>Nationality</th>\n",
" <th>Overall Score</th>\n",
" <th>Potential</th>\n",
" <th>Club</th>\n",
" <th>League</th>\n",
" <th>Value</th>\n",
" <th>Wage</th>\n",
" <th>Preferred Foot</th>\n",
" <th>International Reputation</th>\n",
" <th>...</th>\n",
" <th>Composure</th>\n",
" <th>Marking</th>\n",
" <th>StandingTackle</th>\n",
" <th>SlidingTackle</th>\n",
" <th>GKDiving</th>\n",
" <th>GKHandling</th>\n",
" <th>GKKicking</th>\n",
" <th>GKPositioning</th>\n",
" <th>GKReflexes</th>\n",
" <th>Release Clause</th>\n",
" </tr>\n",
" <tr>\n",
" <th>Name</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>David Neres</th>\n",
" <td>21</td>\n",
" <td>Brazil</td>\n",
" <td>79</td>\n",
" <td>86</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€18M</td>\n",
" <td>€18K</td>\n",
" <td>Left</td>\n",
" <td>2</td>\n",
" <td>...</td>\n",
" <td>78</td>\n",
" <td>32</td>\n",
" <td>32</td>\n",
" <td>32</td>\n",
" <td>14</td>\n",
" <td>10</td>\n",
" <td>5</td>\n",
" <td>13</td>\n",
" <td>6</td>\n",
" <td>€28.8M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>N. Tagliafico</th>\n",
" <td>25</td>\n",
" <td>Argentina</td>\n",
" <td>80</td>\n",
" <td>82</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€15M</td>\n",
" <td>€20K</td>\n",
" <td>Left</td>\n",
" <td>2</td>\n",
" <td>...</td>\n",
" <td>73</td>\n",
" <td>78</td>\n",
" <td>78</td>\n",
" <td>78</td>\n",
" <td>13</td>\n",
" <td>9</td>\n",
" <td>10</td>\n",
" <td>15</td>\n",
" <td>16</td>\n",
" <td>€22.1M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>H. Bandé</th>\n",
" <td>19</td>\n",
" <td>Burkina Faso</td>\n",
" <td>72</td>\n",
" <td>84</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€5.5M</td>\n",
" <td>€7K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>63</td>\n",
" <td>22</td>\n",
" <td>41</td>\n",
" <td>12</td>\n",
" <td>7</td>\n",
" <td>9</td>\n",
" <td>15</td>\n",
" <td>15</td>\n",
" <td>11</td>\n",
" <td>€8.8M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>V. Černý</th>\n",
" <td>20</td>\n",
" <td>Czech Republic</td>\n",
" <td>68</td>\n",
" <td>75</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€1.3M</td>\n",
" <td>€6K</td>\n",
" <td>Left</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>62</td>\n",
" <td>27</td>\n",
" <td>20</td>\n",
" <td>19</td>\n",
" <td>11</td>\n",
" <td>10</td>\n",
" <td>10</td>\n",
" <td>11</td>\n",
" <td>11</td>\n",
" <td>€2M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>L. Orejuela</th>\n",
" <td>22</td>\n",
" <td>Colombia</td>\n",
" <td>67</td>\n",
" <td>73</td>\n",
" <td>Ajax</td>\n",
" <td>Eredivisie</td>\n",
" <td>€875K</td>\n",
" <td>€5K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>60</td>\n",
" <td>58</td>\n",
" <td>66</td>\n",
" <td>69</td>\n",
" <td>7</td>\n",
" <td>15</td>\n",
" <td>12</td>\n",
" <td>12</td>\n",
" <td>11</td>\n",
" <td>€1.4M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Fidalgo</th>\n",
" <td>21</td>\n",
" <td>Spain</td>\n",
" <td>65</td>\n",
" <td>75</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€875K</td>\n",
" <td>€20K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>68</td>\n",
" <td>46</td>\n",
" <td>51</td>\n",
" <td>47</td>\n",
" <td>10</td>\n",
" <td>9</td>\n",
" <td>10</td>\n",
" <td>11</td>\n",
" <td>9</td>\n",
" <td>€2M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Manu Hernando</th>\n",
" <td>19</td>\n",
" <td>Spain</td>\n",
" <td>64</td>\n",
" <td>76</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€700K</td>\n",
" <td>€9K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>47</td>\n",
" <td>70</td>\n",
" <td>65</td>\n",
" <td>67</td>\n",
" <td>11</td>\n",
" <td>12</td>\n",
" <td>13</td>\n",
" <td>12</td>\n",
" <td>5</td>\n",
" <td>€1.6M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>Marcos Llorente</th>\n",
" <td>23</td>\n",
" <td>Spain</td>\n",
" <td>79</td>\n",
" <td>87</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€16M</td>\n",
" <td>€110K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>76</td>\n",
" <td>76</td>\n",
" <td>79</td>\n",
" <td>72</td>\n",
" <td>13</td>\n",
" <td>6</td>\n",
" <td>6</td>\n",
" <td>11</td>\n",
" <td>15</td>\n",
" <td>€36M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>T. Courtois</th>\n",
" <td>26</td>\n",
" <td>Belgium</td>\n",
" <td>89</td>\n",
" <td>90</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€53.5M</td>\n",
" <td>€240K</td>\n",
" <td>Left</td>\n",
" <td>4</td>\n",
" <td>...</td>\n",
" <td>66</td>\n",
" <td>20</td>\n",
" <td>18</td>\n",
" <td>16</td>\n",
" <td>85</td>\n",
" <td>91</td>\n",
" <td>72</td>\n",
" <td>86</td>\n",
" <td>88</td>\n",
" <td>€113.7M</td>\n",
" </tr>\n",
" <tr>\n",
" <th>L. Zidane</th>\n",
" <td>20</td>\n",
" <td>France</td>\n",
" <td>62</td>\n",
" <td>71</td>\n",
" <td>Real Madrid</td>\n",
" <td>La Liga</td>\n",
" <td>€350K</td>\n",
" <td>€9K</td>\n",
" <td>Right</td>\n",
" <td>1</td>\n",
" <td>...</td>\n",
" <td>36</td>\n",
" <td>13</td>\n",
" <td>11</td>\n",
" <td>13</td>\n",
" <td>65</td>\n",
" <td>60</td>\n",
" <td>61</td>\n",
" <td>62</td>\n",
" <td>61</td>\n",
" <td>€788K</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>226 rows × 80 columns</p>\n",
"</div>"
],
"text/plain": [
" Age Nationality Overall Score Potential Club \\\n",
"Name \n",
"David Neres 21 Brazil 79 86 Ajax \n",
"N. Tagliafico 25 Argentina 80 82 Ajax \n",
"H. Bandé 19 Burkina Faso 72 84 Ajax \n",
"V. Černý 20 Czech Republic 68 75 Ajax \n",
"L. Orejuela 22 Colombia 67 73 Ajax \n",
"... ... ... ... ... ... \n",
"Fidalgo 21 Spain 65 75 Real Madrid \n",
"Manu Hernando 19 Spain 64 76 Real Madrid \n",
"Marcos Llorente 23 Spain 79 87 Real Madrid \n",
"T. Courtois 26 Belgium 89 90 Real Madrid \n",
"L. Zidane 20 France 62 71 Real Madrid \n",
"\n",
" League Value Wage Preferred Foot \\\n",
"Name \n",
"David Neres Eredivisie €18M €18K Left \n",
"N. Tagliafico Eredivisie €15M €20K Left \n",
"H. Bandé Eredivisie €5.5M €7K Right \n",
"V. Černý Eredivisie €1.3M €6K Left \n",
"L. Orejuela Eredivisie €875K €5K Right \n",
"... ... ... ... ... \n",
"Fidalgo La Liga €875K €20K Right \n",
"Manu Hernando La Liga €700K €9K Right \n",
"Marcos Llorente La Liga €16M €110K Right \n",
"T. Courtois La Liga €53.5M €240K Left \n",
"L. Zidane La Liga €350K €9K Right \n",
"\n",
" International Reputation ... Composure Marking \\\n",
"Name ... \n",
"David Neres 2 ... 78 32 \n",
"N. Tagliafico 2 ... 73 78 \n",
"H. Bandé 1 ... 63 22 \n",
"V. Černý 1 ... 62 27 \n",
"L. Orejuela 1 ... 60 58 \n",
"... ... ... ... ... \n",
"Fidalgo 1 ... 68 46 \n",
"Manu Hernando 1 ... 47 70 \n",
"Marcos Llorente 1 ... 76 76 \n",
"T. Courtois 4 ... 66 20 \n",
"L. Zidane 1 ... 36 13 \n",
"\n",
" StandingTackle SlidingTackle GKDiving GKHandling GKKicking \\\n",
"Name \n",
"David Neres 32 32 14 10 5 \n",
"N. Tagliafico 78 78 13 9 10 \n",
"H. Bandé 41 12 7 9 15 \n",
"V. Černý 20 19 11 10 10 \n",
"L. Orejuela 66 69 7 15 12 \n",
"... ... ... ... ... ... \n",
"Fidalgo 51 47 10 9 10 \n",
"Manu Hernando 65 67 11 12 13 \n",
"Marcos Llorente 79 72 13 6 6 \n",
"T. Courtois 18 16 85 91 72 \n",
"L. Zidane 11 13 65 60 61 \n",
"\n",
" GKPositioning GKReflexes Release Clause \n",
"Name \n",
"David Neres 13 6 €28.8M \n",
"N. Tagliafico 15 16 €22.1M \n",
"H. Bandé 15 11 €8.8M \n",
"V. Černý 11 11 €2M \n",
"L. Orejuela 12 11 €1.4M \n",
"... ... ... ... \n",
"Fidalgo 11 9 €2M \n",
"Manu Hernando 12 5 €1.6M \n",
"Marcos Llorente 11 15 €36M \n",
"T. Courtois 86 88 €113.7M \n",
"L. Zidane 62 61 €788K \n",
"\n",
"[226 rows x 80 columns]"
]
},
"execution_count": 65,