Minor improvements -> func dataframe to array