dmaclean / dfs-python

Tools for DFS data collection and projection creation.
11 stars 2 forks source link

Team and Opponent columns are sometimes the same in projection CSV #43

Closed dmaclean closed 10 years ago

dmaclean commented 10 years ago

For example:

Casey McGehee MIA MIA Third Baseman/ First Baseman and Second Baseman 4 0.329488986784 0.321887573964 0.72 0.742 6 0.167 1 0 1.018 0.67 ATL -119 7.5 Runs Jean Segura MIL MIL Shortstop 1 0.292661764706 0.324623376623 0.738 0.663 N/A N/A N/A N/A 1.016 1.171 MIL -145 7.5 Runs Mark Reynolds MIL MIL Third Baseman and First Baseman 7 0.318790055249 0.316048 0.751 0.739 12 0.182 2 0 1.016 1.171 MIL -145 7.5 Runs Khris Davis MIL MIL Leftfielder 5 0.338537688442 0.317914893617 0.742 0.794 3 0 0 0 1.016 1.171 MIL -145 7.5 Runs Lyle Overbay MIL MIL First Baseman 8 0.280617391304 0.29062037037 0.638 0.615 23 0.136 3 0 1.016 1.171 MIL -145 7.5 Runs Scooter Gennett MIL MIL Second Baseman 6 0.300416666667 0.301275 0.693 0.679 3 0 0 0 1.016 1.171 MIL -145 7.5 Runs

dmaclean commented 10 years ago

Fixed. Conditional statement for determining the opponent was always resolving to the home team.

Files modified: