nfl_data_py icon indicating copy to clipboard operation
nfl_data_py copied to clipboard

Add column data types to import_ids()

Open justinrobinson1020 opened this issue 8 months ago • 0 comments

Provides data types to the read_csv function in import_ids(). Previously, pandas parsed some numeric ids as floats adding trailing zeros that required removal. New data types are:

  • birthdate is parsed as a datetime64
  • age is parsed as a Float64
  • draft_year, draft_round, draft_pick, draft_ovr, height, weight, and db_season are parsed as Int64
  • all other fields including numeric ids are parsed as strings

justinrobinson1020 avatar Jun 27 '24 20:06 justinrobinson1020