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
#This script creates a DataFrame from list of data, with the columns named 'Name' and 'Age', then writes the DataFrame to a CSV file with the name 'example.csv' which is stored in the current working directory.
You can also use other options like header to add header to the csv file
df.to_csv(csv_file, index=False, header=True)
################################################
# You can also write the dataframe to csv file without creating a dataframe