pandas.DataFrame.to_numpy — pandas 0.24.0rc1 documentation
pandas.pydata.org › pandaspandas.DataFrame.to_numpy. ¶. Convert the DataFrame to a NumPy array. New in version 0.24.0. By default, the dtype of the returned array will be the common NumPy dtype of all types in the DataFrame. For example, if the dtypes are float16 and float32, the results dtype will be float32 . This may require copying data and coercing values, which ...