You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Kyle
First of all thanks for this great package!
I am having trouble to get the vectorization to work as per your example
I have a pandas date frame with a 'Date' column of (datetimes) and a long and lat (floats)
When I run the vector operation I am getting a single date back (ref attachment)
What could I be doing wrong?
Thanks a lot
Michiel
The text was updated successfully, but these errors were encountered:
Michiel,
I managed to reproduce your example. The problem is that your date series is TZ-naive and it should be TZ-aware. (And I understand the get_times() API should tell you this...) You can correct it for example by localizing it to a given timezone:
df['Date'] =df['Date'].dt.tz_localize('utc')
If you want a set up a local hourly date series for some place with a non-fixed UTC-offset (think DST changes), you might be better off with initializing your date series right away as a TZ-aware series, something like
Another remark, there will be one sunrise time per local day, so you'll computationally better off if you use a dataset with just a single observation per day.
Hi Kyle
First of all thanks for this great package!
I am having trouble to get the vectorization to work as per your example
I have a pandas date frame with a 'Date' column of (datetimes) and a long and lat (floats)
When I run the vector operation I am getting a single date back (ref attachment)
What could I be doing wrong?
Thanks a lot
Michiel
The text was updated successfully, but these errors were encountered: