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