You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, we create an object called df which is assigned to values from a file dataset.
Then, the 2nd line is used to extract the values of the “AC Power” column from a pandas DataFrame object named “df” and store them in a numpy array named “timeseries”.
The “.values” attribute returns a numpy array of the values in the DataFrame and “.astype(‘float32’)” converts the data type of the array to float32.
This is useful when working with machine learning models that require float32 data type.