I have a dataframe named "domains". I want to save it as csv to my github project. How do I do that?
Many thanks!
You can use pandas to save the data frame as a csv file in the local folder that your GitHub repo is attached to;
domains.to_csv("path_to_local_git_folder/domains.csv")
More info about this function is on the pandas website
Then once you have your csv file locally, you can add, commit and push to GitHub just like you would a python script.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.