Closed gfairchild closed 1 year ago
Interesting! Pandas does a series of operations like iter(t)
and len(t)
to try to figure out what sort of thing the time object is, and they specifically need to return TypeError
if t
is a scalar time for Pandas to understand what's going on. I've just landed a quick fix, which should appear with the next release. If you want to try it out now, you can:
pip install -U https://github.com/skyfielders/python-skyfield/archive/master.zip
Thanks so much!
I just noticed that when I include
Time
objects in a Pandas DataFrame, anIndexError
is raised. Here's a minimum working example:Here's the output I get:
The DataFrame does seem to get created properly (you'll see above that
df.info()
shows 2 items), but when I try to print it out (print(df)
), theIndexError
is raised. What's going on here?Thanks!