Python Code to create a CSV file

Published: 22 March 2023
on channel: RiDu Tech
352
9

Python Code to create a CSV file

import csv
import pandas as pd
data={"Name":["Ritesh","Riya","Shruti","Shlok","Vishva"],
"Age":[45,7,24,32,38]}
data=pd.DataFrame(data)
data.to_csv("student_info.csv",index=False)
print(data.head())


On this page of the site you can watch the video online Python Code to create a CSV file with a duration of hours minute second in good quality, which was uploaded by the user RiDu Tech 22 March 2023, share the link with friends and acquaintances, this video has already been watched 352 times on youtube and it was liked by 9 viewers. Enjoy your viewing!