dataframe_to_array

Import in python using from mcutils.scripts.to_dataframe import dataframe_to_array

mcutils.scripts.to_dataframe.dataframe_to_array(dataframe, names)[source]

Writes a dataframe back to disc

Parameters
  • dataframe – pandas dataframe with the data

  • names – columns to export

Returns

(N, M) array for N rows and M columns