Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
nicholas maddren
12,793 PointsCan I do this with Python?
So I need to manipulate a CSV file on my server, this includes changes such as:
Changing column order Deleting certain columns Renaming the first row for certain columns
I then need to write these changes directly to the CSV file I am reading.
Is this possible with Python before I start learning it?
2 Answers
Ricky Catron
13,023 PointsHere is a great Python module for working with CSV files. It sounds like it can do everything you need but I would look it over yourself just to be sure. That being said Python is turing complete, it can do pretty much anything it is programmed to do.
Goodluck! --Ricky
Alan Dsouza
10,998 PointsI've used Pandas to deal with all excel like tasks (rename, delete and even joining multiple sheets) within python.