timezone¶
- zipcode_coordinates_tz.timezone.fill_timezones(df: pd.DataFrame, fill_missing: bool = True, timezone_finder: TimezoneFinder | None = None) pd.DataFrame ¶
Fills in the timezones for each coordinate in the specifeid DataFrame.
- Parameters:
df (pd.DataFrame) – A DataFrame with the shape of # Column Non-Null Count Dtype — —— ————– —– 0 Street 0 non-null object 1 City 0 non-null object 2 State 0 non-null object 3 ZipCode 0 non-null object 4 Latitude 0 non-null float64 5 Longitude 0 non-null float64
fill_missing (bool) – Flag indicating whether to fill in missing timezones by the closest match: ZipCode, City, State City, State State.
timezone_finder (TimezoneFinder | None) – The optional TimezoneFinder instance to use.
- Returns:
- A DataFrame with the shape of
# Column Non-Null Count Dtype — —— ————– —– 0 Street 0 non-null object 1 City 0 non-null object 2 State 0 non-null object 3 ZipCode 0 non-null object 4 Latitude 0 non-null float64 5 Longitude 0 non-null float64 6 TZ 0 non-null object