astropy / astropy-tutorials

Tutorials for the Astropy Project
BSD 3-Clause "New" or "Revised" License
289 stars 171 forks source link

Integrate pandas tutorials #261

Open janerigby opened 5 years ago

janerigby commented 5 years ago

@kelle asked me to post an issue, that I've been trying to figure out how to better integrate my "astronomy with pandas" tutorials(https://github.com/janerigby/astro-pandas-tutorials) into the astropy tutorials.

The "Why Pandas" tutorial especially might make sense for integration into the astropy tutorials.

There's a new draft tutorial , https://github.com/janerigby/astro-pandas-tutorials/blob/master/Tables%20-%20Pandas%20and%20Astropy.ipynb , which eventually could show the relative strengths of astropy.tables and pandas for different applications. At present, it shows the places where astropy tables and pandas don't play well together. I'm working on the first issue: astropy.tables.to_pandas() throws an error when trying to convert a multi-dimensional table to pandas, instead of better behavior which would be to drop the offending columns, or expand them into multiple columns. The second issue is about big or little-endian, and I have no idea how to deal with it.

kelle commented 5 years ago

Draft colab tutorial (started by Vicky Scowcroft) is here: https://colab.research.google.com/drive/1nYBq3XDGbKj0zW8hlaMubzY16hFx3DHy

kelle commented 5 years ago

relevant material: http://www.astrowing.eu/data-science/astropy-tables-vs-pandas-dataframes

kelle commented 4 years ago

Looping @taldcroft into this issue. Tom, maybe the link I posted above is the one you also found?