Python Check If Np Array To Dataframe