1

I have a dataframe named "domains". I want to save it as csv to my github project. How do I do that?

Many thanks!

1

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.