-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add tests for testing block_given? functionality of DataFrame.from_csv() method. #308
Comments
@v0dro is there a real life reason for this functionality, in the first place? |
I recently saw a PR that attempted to remove the line containing |
Yes, I understand why we need the test, if functionality exists. |
Say you have a CSV column that contains dates in the form |
I process a lot of CSV files and have gotten into the habbit of reading all fields as strings and doing conversions after it's built into a dataframe. |
Got it, thanks 👍 |
@gnilrets for smaller dataframes and simpler usage scenarios I think passing a block is more readable and straightforward. |
I want to work on this. I'm looking for something I can do for GSoC and I think it's a good fit. |
@gusandrianos yes this would be a great and simple issue to start with. Have you had a look at the source code yet? You should hurry up with your proposal since the deadline for submitting the final proposal is 4th April. |
@v0dro This wasn't what I had in mind for GSoC so having to submit patches for every organization I am interested in kind of caught me off guard. I'll try to solve this quickly as this is the only thing missing from my proposal. :) Anything you want me to know before starting? |
Well this is a pretty easy patch so I don't think you will require my help for it. Make sure you submit your draft proposal early. A proposal without a patch submission is also fine since we can start evaluating it. You can always add information about the code submission later. |
@v0dro That's awesome, I haven't really found anything that fits me better than SciRuby. |
I am a bit confused. Can you give a usage example? I'm stuck on this for a while now. |
The
DataFrame.from_csv
method currently has a provision for accepting blocks and performing some manipulation on a row that has been read before loading the data into a dataframe.However, there are no tests in
io_spec.rb
for testing this.Tests should amply test error conditions too.
The text was updated successfully, but these errors were encountered: