-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terrible Data from your wonderful job #25
Comments
0skhMH I created a specific Dojo I will have the last one collected and read to post before thursday |
I Do need help on thinking of a way to create something slightly harder or easier than the medium. Something that involves placing a single piece of data inside a regular CSV or creating something that feels like a medium or hard CSV |
Looking into the examples so far in the Dojo session, this is a great start. Thanks for your work! I see that the "easy" file has a header line (with column names) while the "medium" one does not. I would suggest inverting that so that the first exercise is a little easier (getting numbers from a list of lines is a great beginner-level problem) and the medium one a little more interesting (ask for users to make sure the column names are conserved in the output). And I would not put those names in quotes just yet. For a "hard" puzzle, here are some ideas that could make a good difficulty curve:
|
So I found out that the CSV size that I want to use will throw a site error. 800k is just to much for the system to handle. 100k is to large for the system to handle. There are a few options. some of the more difficult things within the file that also increase it's size here is some of the file so you can get an idea of what I'm working with Terrible_Csv_File.txt |
I see, yes there are limitations in cyber-dojo. I usually avoid files that are more than 1000 lines long. I like the idea for the last exercise, that's the kind of web-scraping messy data you were talking about. Looking forward to that! |
Nice also I need someone to look over the tests for the hard and medium. I don't know how you do them so I just wrote assertions that are looking for specific lines. The medium is looking for the copied list and the hard is looking for the first product in each webpage |
I think the tests for the Medium and Hard are looking for the correct output, but I think that the test for the easy might be incorrect |
Do I even need to personally write the tests or is that for everyone else? |
Synopsis
The idea of this is to go through 4 phases where you create increasingly more difficult CSV files to parse
Examples
First input will be Easy_CSV.csv that will require
import csv
with open('Easy_CSV.csv') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
for row in csv_reader:
print(row)
then it will show names and integers from the CSV files
second Input will be Intermediate.csv that will require more effort
then a hard.csv then a hellmode.csv
The text was updated successfully, but these errors were encountered: