set_dates
- set_dates(gpt, dates)
Creates a new
Geopointswith all the dates (only the date component of the dates!) ingptreplaced bydates.- Parameters
gpt (
Geopoints) – input geopointsdates (datetime.datetime/date or list or ndarray of these) – dates to be written into
gpt
- Return type
If
datesis a single date all the dates are replaced with it. Ifdatesis a list or ndarray and is shorter than the geopoints count then only the first dates that have a corresponding value indatesare changed.