Closed alecglen closed 1 year ago
Currently, import_pfr() returns one of two nflfastR datasets:
import_pfr()
Although they're organized under the same release, these files are generated from different PFR pages and the columns are not quite aligned. This can lead to confusion a la https://github.com/cooperdff/nfl_data_py/issues/50#issuecomment-1648118690.
I suggest that we break import_pfr into two endpoints: import_seasonal_pfr(s_type, years) and import_weekly_pfr(s_type, years). Doing that will help make the distinction more clear (and we can link to example PFR pages per method to help even more).
import_pfr
import_seasonal_pfr(s_type, years)
import_weekly_pfr(s_type, years)
Currently,
import_pfr()
returns one of two nflfastR datasets:Although they're organized under the same release, these files are generated from different PFR pages and the columns are not quite aligned. This can lead to confusion a la https://github.com/cooperdff/nfl_data_py/issues/50#issuecomment-1648118690.
I suggest that we break
import_pfr
into two endpoints:import_seasonal_pfr(s_type, years)
andimport_weekly_pfr(s_type, years)
. Doing that will help make the distinction more clear (and we can link to example PFR pages per method to help even more).