import pandas as pd
# Save the dataframe as CSV
scaled_df.to_csv("scaled_data.csv", index=False)
I'm assuming that your scaled dataset is a pandas DataFrame called scaled_df
:
This will save scaled_data.csv
in the current working directory i.e. where your notebook is currently running.