Skip to content

Instantly share code, notes, and snippets.

@rbiswas4
Created June 12, 2016 04:08
Show Gist options
  • Save rbiswas4/fae7f0b691f69b335e9f8c6ca2dd0bae to your computer and use it in GitHub Desktop.
Save rbiswas4/fae7f0b691f69b335e9f8c6ca2dd0bae to your computer and use it in GitHub Desktop.
import numpy as np
import pandas as pd
# Note that the np.array(fits_rec) is essential for functionality like groupby to not fail
d = np.array(fits_rec).byteswap().newbyteorder()
df = pd.DataFrame(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment