set_dates

set_dates(gpt, dates)

Creates a new Geopoints with all the dates (only the date component of the dates!) in gpt replaced by dates.

Parameters
  • gpt (Geopoints) – input geopoints

  • dates (datetime.datetime/date or list or ndarray of these) – dates to be written into gpt

Return type

Geopoints

If dates is a single date all the dates are replaced with it. If dates is a list or ndarray and is shorter than the geopoints count then only the first dates that have a corresponding value in dates are changed.