Oct-30-2023, 06:11 PM
(Oct-30-2023, 04:49 PM)deanhystad Wrote: loc[0] contains Tail_Number, which is not a float. A numpy array must be homogeneous, so all types are converted to object when you create the series. There are ways around this as discussed here:
https://stackoverflow.com/questions/6264...-dataframe
Maybe the slice approach will work for you as it sounds like you are reassembling the rows back into dataframes.
arr_slice = arr.loc[0:0] reassembled_df = pd.concat([list of arr slices])
It worked, thank you for your help!