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 trialElizabeth Keleshian
1,844 Pointsopen_with_csv()
Back in s2v1.py our open_with_csv function had 1 argument, the filename. Here, there's second argument d = ',' and I don't know what this means. I try to run my file, but there's a message: TypeError: open_with_csv() got an unexpected keyword argument 'd'
If I omit this, then I get another error, this time: FileNotFoundError: [Errno 2] No such file or directory: '_datatempTableFile.csv'
Can someone help please?
Gavin Schilling
37,904 PointsGavin Schilling
37,904 PointsI am receiving the same first error though it does let me delete it and create the table & chart without the dilimeter. As for your other question, the d stands for the dilimeter. This is used to tell the system where to separate the information when parsing the data such as with comma separated values like in most CSVs.