- Published on
- · Data Independent
Pandas DataFrame To NumPy Array | pd.DataFrame.to_numpy()
This post is auto-generated from a public YouTube video for personal study notes. It is not an endorsement. The transcript is machine-derived and may contain errors; refer to the original video for accuracy.
About this video
Pandas is great for working with tables, but sometimes you need to use the full force of a statistical package to get the job done. That's where turning your DataFrame into a NumPy array comes.
Turning your DataFrame into a NumPy array means removing the DataFrame properties, and changing your data from a table to an array (or array of arrays).
NumPy is a very powerful, very fast, statistical analysis package that is built on top of Python. In fact, NumPy is a dependency for Pandas, meaning you must have NumPy before you can install Pandas.