-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdataframe_test.go
4044 lines (3942 loc) · 251 KB
/
dataframe_test.go
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
package gambas
import (
"fmt"
"math"
"math/rand"
"testing"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
)
func TestDataFramePrint(t *testing.T) {
type printTest struct {
arg1 DataFrame
}
printTests := []printTest{
{
DataFrame{
[]Series{
{
[]interface{}{1, 2, 3},
IndexData{
[]Index{{0, []interface{}{1}}, {1, []interface{}{2}}, {2, []interface{}{3}}},
[]string{"group a"},
},
"group a",
"int",
},
{
[]interface{}{4, 5, 6},
IndexData{
[]Index{{0, []interface{}{1}}, {1, []interface{}{2}}, {2, []interface{}{3}}},
[]string{"group a"},
},
"group b",
"int",
},
{
[]interface{}{7, 8, 9},
IndexData{
[]Index{{0, []interface{}{1}}, {1, []interface{}{2}}, {2, []interface{}{3}}},
[]string{"group a"},
},
"group c",
"int",
},
},
IndexData{
[]Index{{0, []interface{}{1}}, {1, []interface{}{2}}, {2, []interface{}{3}}},
[]string{"group a"},
},
[]string{"group a", "group b", "group c"},
},
},
{
func() DataFrame {
newDf, err := ReadCsv("./testfiles/testdropnan1.csv", []string{"Name"})
if err != nil {
t.Error(err)
}
return newDf
}(),
},
}
for _, test := range printTests {
test.arg1.Print()
}
}
func TestDataFramePrintRange(t *testing.T) {
type printRangeTest struct {
arg1 DataFrame
}
printRangeTests := []printRangeTest{
{
func() DataFrame {
newDf, err := ReadCsv("./testfiles/testdropnan1.csv", []string{"Name"})
if err != nil {
t.Error(err)
}
return newDf
}(),
},
}
for _, test := range printRangeTests {
test.arg1.PrintRange(1, 2)
}
}
func TestDataFrameHead(t *testing.T) {
type headTest struct {
arg1 DataFrame
}
headTests := []headTest{
{
func(data [][]interface{}, columns []string, indexCols []string) DataFrame {
newDf, err := NewDataFrame(data, columns, indexCols)
if err != nil {
t.Error(err)
}
return newDf
}([][]interface{}{{"Avery", "Bradley", "Candice"}, {19, 27, 22}, {"Male", "Male", "Female"}}, []string{"Name", "Age", "Sex"}, []string{"Name"}),
},
}
for _, test := range headTests {
test.arg1.Head(2)
}
}
func TestDataFrameTail(t *testing.T) {
type tailTest struct {
arg1 DataFrame
}
tailTests := []tailTest{
{
func() DataFrame {
newDf, err := ReadCsv("./testfiles/testdropnan1.csv", []string{"Name"})
if err != nil {
t.Error(err)
}
return newDf
}(),
},
}
for _, test := range tailTests {
test.arg1.Tail(3)
}
}
func BenchmarkDataFrameLocRows(b *testing.B) {
nbaDf, err := ReadCsv("testfiles/nba.csv", []string{"Name"})
if err != nil {
b.Error(err)
}
neoDf, err := ReadCsv("testfiles/neo_v2.csv", []string{"id"})
if err != nil {
b.Error(err)
}
nbaCol, err := readCsvColIntoData("testfiles/nba.csv", "Name")
if err != nil {
b.Error(err)
}
neoCol, err := readCsvColIntoData("testfiles/neo_v2.csv", "id")
if err != nil {
b.Error(err)
}
dfList := []DataFrame{nbaDf, neoDf}
colList := [][][]interface{}{nbaCol, neoCol}
for i := 0; i < 2; i++ {
b.Run(fmt.Sprintf("case_%d", i), func(b *testing.B) {
df := dfList[i]
col := colList[i]
b.ResetTimer()
for i := 0; i < b.N; i++ {
df.LocRows(col[rand.Intn(len(col))])
}
})
}
}
func TestDataFrameLocRows(t *testing.T) {
type dataframeLocRowsTest struct {
arg1 DataFrame
arg2 [][]interface{}
expected DataFrame
}
dataframeLocRowsTests := []dataframeLocRowsTest{
{
func(data [][]interface{}, columns []string, indexCols []string) DataFrame {
newDf, err := NewDataFrame(data, columns, indexCols)
if err != nil {
t.Error(err)
}
return newDf
}([][]interface{}{{"Avery", "Bradley", "Candice"}, {19, 27, 22}, {"Male", "Male", "Female"}}, []string{"Name", "Age", "Sex"}, []string{"Name"}),
[][]interface{}{{"Avery"}},
DataFrame{
[]Series{
{
[]interface{}{"Avery"},
IndexData{
[]Index{{0, []interface{}{"Avery"}}},
[]string{"Name"},
},
"Name",
"string",
},
{
[]interface{}{19},
IndexData{
[]Index{{0, []interface{}{"Avery"}}},
[]string{"Name"},
},
"Age",
"int",
},
{
[]interface{}{"Male"},
IndexData{
[]Index{{0, []interface{}{"Avery"}}},
[]string{"Name"},
},
"Sex",
"string",
},
},
IndexData{
[]Index{{0, []interface{}{"Avery"}}},
[]string{"Name"},
},
[]string{"Name", "Age", "Sex"},
},
},
{
func() DataFrame {
newDf, err := ReadCsv("./testfiles/testdflocrows1.csv", []string{"Name"})
if err != nil {
t.Error(err)
}
return newDf
}(),
[][]interface{}{{"Jae Crowder"}},
DataFrame{
[]Series{
{
[]interface{}{"Jae Crowder"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"Name",
"string",
},
{
[]interface{}{"Boston Celtics"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"Team",
"string",
},
{
[]interface{}{99.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"Number",
"float64",
},
{
[]interface{}{"SF"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"Position",
"string",
},
{
[]interface{}{25.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"Age",
"float64",
},
{
[]interface{}{"6-6"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"Height",
"string",
},
{
[]interface{}{235.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"Weight",
"float64",
},
{
[]interface{}{"Marquette"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"College",
"string",
},
{
[]interface{}{6796117.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
"Salary",
"float64",
},
},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}},
[]string{"Name"},
},
[]string{"Name", "Team", "Number", "Position", "Age", "Height", "Weight", "College", "Salary"},
},
},
{
func() DataFrame {
newDf, err := ReadCsv("./testfiles/testdflocrows1.csv", []string{"Name"})
if err != nil {
t.Error(err)
}
return newDf
}(),
[][]interface{}{{"Jae Crowder"}, {"Avery Bradley"}},
DataFrame{
[]Series{
{
[]interface{}{"Jae Crowder", "Avery Bradley"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"Name",
"string",
},
{
[]interface{}{"Boston Celtics", "Boston Celtics"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"Team",
"string",
},
{
[]interface{}{99.0, 0.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"Number",
"float64",
},
{
[]interface{}{"SF", "PG"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"Position",
"string",
},
{
[]interface{}{25.0, 25.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"Age",
"float64",
},
{
[]interface{}{"6-6", "6-2"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"Height",
"string",
},
{
[]interface{}{235.0, 180.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"Weight",
"float64",
},
{
[]interface{}{"Marquette", "Texas"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"College",
"string",
},
{
[]interface{}{6796117.0, 7730337.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
"Salary",
"float64",
},
},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder"}}, {0, []interface{}{"Avery Bradley"}}},
[]string{"Name"},
},
[]string{"Name", "Team", "Number", "Position", "Age", "Height", "Weight", "College", "Salary"},
},
},
{
func() DataFrame {
newDf, err := ReadCsv("./testfiles/testdflocrows1.csv", []string{"Name", "Age"})
if err != nil {
t.Error(err)
}
return newDf
}(),
[][]interface{}{{"Jae Crowder", 25.0}, {"Avery Bradley", 25.0}},
DataFrame{
[]Series{
{
[]interface{}{"Jae Crowder", "Avery Bradley"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"Name",
"string",
},
{
[]interface{}{"Boston Celtics", "Boston Celtics"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"Team",
"string",
},
{
[]interface{}{99.0, 0.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"Number",
"float64",
},
{
[]interface{}{"SF", "PG"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"Position",
"string",
},
{
[]interface{}{25.0, 25.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"Age",
"float64",
},
{
[]interface{}{"6-6", "6-2"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"Height",
"string",
},
{
[]interface{}{235.0, 180.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"Weight",
"float64",
},
{
[]interface{}{"Marquette", "Texas"},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"College",
"string",
},
{
[]interface{}{6796117.0, 7730337.0},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
"Salary",
"float64",
},
},
IndexData{
[]Index{{1, []interface{}{"Jae Crowder", 25.0}}, {0, []interface{}{"Avery Bradley", 25.0}}},
[]string{"Name", "Age"},
},
[]string{"Name", "Team", "Number", "Position", "Age", "Height", "Weight", "College", "Salary"},
},
},
{
func() DataFrame {
newDf, err := ReadCsv("./testfiles/testdflocrows1.csv", []string{"Name", "Age"})
if err != nil {
t.Error(err)
}
return newDf
}(),
[][]interface{}{{"Jae Crowder", 22.0}, {"Avery Bradley", 25.0}},
DataFrame{},
},
}
for _, test := range dataframeLocRowsTests {
output, err := test.arg1.LocRows(test.arg2...)
if !cmp.Equal(output, test.expected, cmp.AllowUnexported(DataFrame{}, Series{}, IndexData{}, Index{})) || (!cmp.Equal(output, DataFrame{}, cmp.AllowUnexported(DataFrame{}, Series{}, IndexData{}, Index{})) && err != nil) {
t.Fatalf("expected %v, got %v, error %v", test.expected, output, err)
}
}
}
func BenchmarkDataFrameLocRowsItems(b *testing.B) {
testDf, err := ReadCsv("testfiles/nba.csv", []string{"Name"})
names := [][]interface{}{
{"Avery Bradley"},
{"Jae Crowder"},
{"John Holland"},
{"R.J. Hunter"},
{"Jonas Jerebko"},
{"Amir Johnson"},
{"Jordan Mickey"},
{"Kelly Olynyk"},
{"Terry Rozier"},
{"Marcus Smart"},
{"Jared Sullinger"},
{"Isaiah Thomas"},
{"Evan Turner"},
{"James Young"},
{"Tyler Zeller"},
{"Bojan Bogdanovic"},
{"Markel Brown"},
{"Wayne Ellington"},
{"Rondae Hollis-Jefferson"},
{"Jarrett Jack"},
{"Sergey Karasev"},
{"Sean Kilpatrick"},
{"Shane Larkin"},
{"Brook Lopez"},
{"Chris McCullough"},
{"Willie Reed"},
{"Thomas Robinson"},
{"Henry Sims"},
{"Donald Sloan"},
{"Thaddeus Young"},
{"Arron Afflalo"},
{"Lou Amundson"},
{"Thanasis Antetokounmpo"},
{"Carmelo Anthony"},
{"Jose Calderon"},
{"Cleanthony Early"},
{"Langston Galloway"},
{"Jerian Grant"},
{"Robin Lopez"},
{"Kyle O'Quinn"},
{"Kristaps Porzingis"},
{"Kevin Seraphin"},
{"Lance Thomas"},
{"Sasha Vujacic"},
{"Derrick Williams"},
{"Tony Wroten"},
{"Elton Brand"},
{"Isaiah Canaan"},
{"Robert Covington"},
{"Joel Embiid"},
{"Jerami Grant"},
{"Richaun Holmes"},
{"Carl Landry"},
{"Kendall Marshall"},
{"T.J. McConnell"},
{"Nerlens Noel"},
{"Jahlil Okafor"},
{"Ish Smith"},
{"Nik Stauskas"},
{"Hollis Thompson"},
{"Christian Wood"},
{"Bismack Biyombo"},
{"Bruno Caboclo"},
{"DeMarre Carroll"},
{"DeMar DeRozan"},
{"James Johnson"},
{"Cory Joseph"},
{"Kyle Lowry"},
{"Lucas Nogueira"},
{"Patrick Patterson"},
{"Norman Powell"},
{"Terrence Ross"},
{"Luis Scola"},
{"Jason Thompson"},
{"Jonas Valanciunas"},
{"Delon Wright"},
{"Leandro Barbosa"},
{"Harrison Barnes"},
{"Andrew Bogut"},
{"Ian Clark"},
{"Stephen Curry"},
{"Festus Ezeli"},
{"Draymond Green"},
{"Andre Iguodala"},
{"Shaun Livingston"},
{"Kevon Looney"},
{"James Michael McAdoo"},
{"Brandon Rush"},
{"Marreese Speights"},
{"Klay Thompson"},
{"Anderson Varejao"},
{"Cole Aldrich"},
{"Jeff Ayres"},
{"Jamal Crawford"},
{"Branden Dawson"},
{"Jeff Green"},
{"Blake Griffin"},
{"Wesley Johnson"},
{"DeAndre Jordan"},
{"Luc Richard Mbah a Moute"},
{"Chris Paul"},
{"Paul Pierce"},
{"Pablo Prigioni"},
{"JJ Redick"},
{"Austin Rivers"},
{"C.J. Wilcox"},
{"Brandon Bass"},
{"Tarik Black"},
{"Anthony Brown"},
{"Kobe Bryant"},
{"Jordan Clarkson"},
{"Roy Hibbert"},
{"Marcelo Huertas"},
{"Ryan Kelly"},
{"Larry Nance Jr."},
{"Julius Randle"},
{"D'Angelo Russell"},
{"Robert Sacre"},
{"Louis Williams"},
{"Metta World Peace"},
{"Nick Young"},
{"Eric Bledsoe"},
{"Devin Booker"},
{"Chase Budinger"},
{"Tyson Chandler"},
{"Archie Goodwin"},
{"John Jenkins"},
{"Brandon Knight"},
{"Alex Len"},
{"Jon Leuer"},
{"Phil Pressey"},
{"Ronnie Price"},
{"Mirza Teletovic"},
{"P.J. Tucker"},
{"T.J. Warren"},
{"Alan Williams"},
{"Quincy Acy"},
{"James Anderson"},
{"Marco Belinelli"},
{"Caron Butler"},
{"Omri Casspi"},
{"Willie Cauley-Stein"},
{"Darren Collison"},
{"DeMarcus Cousins"},
{"Seth Curry"},
{"Duje Dukan"},
{"Rudy Gay"},
{"Kosta Koufos"},
{"Ben McLemore"},
{"Eric Moreland"},
{"Rajon Rondo"},
{"Cameron Bairstow"},
{"Aaron Brooks"},
{"Jimmy Butler"},
{"Mike Dunleavy"},
{"Cristiano Felicio"},
{"Pau Gasol"},
{"Taj Gibson"},
{"Justin Holiday"},
{"Doug McDermott"},
{"Nikola Mirotic"},
{"E'Twaun Moore"},
{"Joakim Noah"},
{"Bobby Portis"},
{"Derrick Rose"},
{"Tony Snell"},
{"Matthew Dellavedova"},
{"Channing Frye"},
{"Kyrie Irving"},
{"LeBron James"},
{"Richard Jefferson"},
{"Dahntay Jones"},
{"James Jones"},
{"Sasha Kaun"},
{"Kevin Love"},
{"Jordan McRae"},
{"Timofey Mozgov"},
{"Iman Shumpert"},
{"J.R. Smith"},
{"Tristan Thompson"},
{"Mo Williams"},
{"Joel Anthony"},
{"Aron Baynes"},
{"Steve Blake"},
{"Lorenzo Brown"},
{"Reggie Bullock"},
{"Kentavious Caldwell-Pope"},
{"Spencer Dinwiddie"},
{"Andre Drummond"},
{"Tobias Harris"},
{"Darrun Hilliard"},
{"Reggie Jackson"},
{"Stanley Johnson"},
{"Jodie Meeks"},
{"Marcus Morris"},
{"Anthony Tolliver"},
{"Lavoy Allen"},
{"Rakeem Christmas"},
{"Monta Ellis"},
{"Paul George"},
{"George Hill"},
{"Jordan Hill"},
{"Solomon Hill"},
{"Ty Lawson"},
{"Ian Mahinmi"},
{"C.J. Miles"},
{"Glenn Robinson III"},
{"Rodney Stuckey"},
{"Myles Turner"},
{"Shayne Whittington"},
{"Joe Young"},
{"Giannis Antetokounmpo"},
{"Jerryd Bayless"},
{"Michael Carter-Williams"},
{"Jared Cunningham"},
{"Tyler Ennis"},
{"John Henson"},
{"Damien Inglis"},
{"O.J. Mayo"},
{"Khris Middleton"},
{"Greg Monroe"},
{"Steve Novak"},
{"Johnny O'Bryant III"},
{"Jabari Parker"},
{"Miles Plumlee"},
{"Greivis Vasquez"},
{"Rashad Vaughn"},
{"Justin Anderson"},
{"J.J. Barea"},
{"Jeremy Evans"},
{"Raymond Felton"},
{"Devin Harris"},
{"David Lee"},
{"Wesley Matthews"},
{"JaVale McGee"},
{"Salah Mejri"},
{"Dirk Nowitzki"},
{"Zaza Pachulia"},
{"Chandler Parsons"},
{"Dwight Powell"},
{"Charlie Villanueva"},
{"Deron Williams"},
{"Trevor Ariza"},
{"Michael Beasley"},
{"Patrick Beverley"},
{"Corey Brewer"},
{"Clint Capela"},
{"Sam Dekker"},
{"Andrew Goudelock"},
{"James Harden"},
{"Montrezl Harrell"},
{"Dwight Howard"},
{"Terrence Jones"},
{"K.J. McDaniels"},
{"Donatas Motiejunas"},
{"Josh Smith"},
{"Jason Terry"},
{"Jordan Adams"},
{"Tony Allen"},
{"Chris Andersen"},
{"Matt Barnes"},
{"Vince Carter"},
{"Mike Conley"},
{"Bryce Cotton"},
{"Jordan Farmar"},
{"Marc Gasol"},
{"JaMychal Green"},
{"P.J. Hairston"},
{"Jarell Martin"},
{"Ray McCallum"},
{"Xavier Munford"},
{"Zach Randolph"},
{"Lance Stephenson"},
{"Alex Stepheson"},
{"Brandan Wright"},
{"Alexis Ajinca"},
{"Ryan Anderson"},
{"Omer Asik"},
{"Luke Babbitt"},
{"Norris Cole"},
{"Dante Cunningham"},
{"Anthony Davis"},
{"Bryce Dejean-Jones"},
{"Toney Douglas"},
{"James Ennis"},
{"Tyreke Evans"},
{"Tim Frazier"},
{"Alonzo Gee"},
{"Eric Gordon"},
{"Jordan Hamilton"},
{"Jrue Holiday"},
{"Orlando Johnson"},
{"Kendrick Perkins"},
{"Quincy Pondexter"},
{"LaMarcus Aldridge"},
{"Kyle Anderson"},
{"Matt Bonner"},
{"Boris Diaw"},
{"Tim Duncan"},
{"Manu Ginobili"},
{"Danny Green"},
{"Kawhi Leonard"},
{"Boban Marjanovic"},
{"Kevin Martin"},
{"Andre Miller"},
{"Patty Mills"},
{"Tony Parker"},
{"Jonathon Simmons"},
{"David West"},
{"Kent Bazemore"},
{"Tim Hardaway Jr."},
{"Kirk Hinrich"},
{"Al Horford"},
{"Kris Humphries"},
{"Kyle Korver"},
{"Paul Millsap"},
{"Mike Muscala"},
{"Lamar Patterson"},
{"Dennis Schroder"},
{"Mike Scott"},
{"Thabo Sefolosha"},
{"Tiago Splitter"},
{"Walter Tavares"},
{"Jeff Teague"},
{"Nicolas Batum"},
{"Troy Daniels"},
{"Jorge Gutierrez"},
{"Tyler Hansbrough"},
{"Aaron Harrison"},
{"Spencer Hawes"},
{"Al Jefferson"},
{"Frank Kaminsky III"},
{"Michael Kidd-Gilchrist"},
{"Jeremy Lamb"},
{"Courtney Lee"},
{"Jeremy Lin"},
{"Kemba Walker"},
{"Marvin Williams"},
{"Cody Zeller"},
{"Chris Bosh"},
{"Luol Deng"},
{"Goran Dragic"},
{"Gerald Green"},
{"Udonis Haslem"},
{"Joe Johnson"},
{"Tyler Johnson"},
{"Josh McRoberts"},
{"Josh Richardson"},
{"Amar'e Stoudemire"},
{"Dwyane Wade"},
{"Briante Weber"},
{"Hassan Whiteside"},
{"Justise Winslow"},
{"Dorell Wright"},
{"Dewayne Dedmon"},
{"Evan Fournier"},
{"Aaron Gordon"},
{"Mario Hezonja"},
{"Ersan Ilyasova"},
{"Brandon Jennings"},
{"Devyn Marble"},
{"Shabazz Napier"},
{"Andrew Nicholson"},
{"Victor Oladipo"},
{"Elfrid Payton"},
{"Jason Smith"},
{"Nikola Vucevic"},
{"C.J. Watson"},
{"Alan Anderson"},
{"Bradley Beal"},
{"Jared Dudley"},
{"Jarell Eddie"},
{"Drew Gooden"},
{"Marcin Gortat"},
{"JJ Hickson"},
{"Nene Hilario"},
{"Markieff Morris"},
{"Kelly Oubre Jr."},
{"Otto Porter Jr."},
{"Ramon Sessions"},
{"Garrett Temple"},
{"Marcus Thornton"},
{"John Wall"},
{"Darrell Arthur"},
{"D.J. Augustin"},
{"Will Barton"},
{"Wilson Chandler"},
{"Kenneth Faried"},
{"Danilo Gallinari"},
{"Gary Harris"},
{"Nikola Jokic"},
{"Joffrey Lauvergne"},
{"Mike Miller"},
{"Emmanuel Mudiay"},
{"Jameer Nelson"},
{"Jusuf Nurkic"},
{"JaKarr Sampson"},
{"Axel Toupane"},
{"Nemanja Bjelica"},
{"Gorgui Dieng"},
{"Kevin Garnett"},
{"Tyus Jones"},
{"Zach LaVine"},
{"Shabazz Muhammad"},
{"Adreian Payne"},
{"Nikola Pekovic"},
{"Tayshaun Prince"},
{"Ricky Rubio"},
{"Damjan Rudez"},
{"Greg Smith"},
{"Karl-Anthony Towns"},
{"Andrew Wiggins"},
{"Steven Adams"},
{"Nick Collison"},
{"Kevin Durant"},
{"Randy Foye"},
{"Josh Huestis"},
{"Serge Ibaka"},
{"Enes Kanter"},
{"Mitch McGary"},
{"Nazr Mohammed"},
{"Anthony Morrow"},
{"Cameron Payne"},
{"Andre Roberson"},
{"Kyle Singler"},
{"Dion Waiters"},
{"Russell Westbrook"},
{"Cliff Alexander"},
{"Al-Farouq Aminu"},
{"Pat Connaughton"},
{"Allen Crabbe"},
{"Ed Davis"},
{"Maurice Harkless"},
{"Gerald Henderson"},
{"Chris Kaman"},
{"Meyers Leonard"},
{"Damian Lillard"},
{"C.J. McCollum"},
{"Luis Montero"},
{"Mason Plumlee"},
{"Brian Roberts"},
{"Noah Vonleh"},
{"Trevor Booker"},
{"Trey Burke"},
{"Alec Burks"},
{"Dante Exum"},
{"Derrick Favors"},
{"Rudy Gobert"},
{"Gordon Hayward"},
{"Rodney Hood"},
{"Joe Ingles"},
{"Chris Johnson"},
{"Trey Lyles"},
{"Shelvin Mack"},
{"Raul Neto"},
{"Tibor Pleiss"},