I have a .fits file that contains data.
I would like to construct a pandas dataframe from this particular file but I don't know how to do it.
data = fits.open('datafile')
data.info
gives:
No. Name Type Cards Dimensions Format
0 PRIMARY PrimaryHDU 6 (12, 250000) float64
and:
data[0].data.shape
gives:
(250000, 12)
df = pd.read_csv('datafile')
? – Phippen