hot9cups/probdists

Improve read_data_file() function

hot9cups opened this issue · 9 comments

Currently the read_data_file() function looks like this

The limitation of the current code is that it'll only work when the numbers are line separated, ie have one number per line.

This can be improved by letting the user specify the separator, which could be passed as an argument to the function.

Can you assign this issue to me?

@errpv78 Sure :)
Before you begin, would you mind describing how you plan to go about it?

Thanks and sure I would like to discuss my approach. I am planning to accept the separator as a function parameter and keeping \n as default. And reading the whole file as a string and then splitting on the separator. I'll begin with this approach and will see what modifications I can perform and anything else that is required.

That sounds great. There's one improvement I can think of in that letting the user input files even in other formats like .csv, .xlsx, etc.

We can take up the details later and you can start drafting your PR now :)

Yeah, sure I'll include that too. Cheers!!

Great work. Thank you for your contribution :)

You're welcome and had a good experience working on that. Cheers!!

@errpv78 :) I Look forward to working with you in the future! If you'd like to connect, you can reach out to me on discord hot9cups#3125 and we can discuss something cool to work on ! Cheers mate!

Yeah sure