uberspot / OpenTriviaQA

A creative commons dataset of trivia questions and answers
Creative Commons Attribution Share Alike 4.0 International
197 stars 69 forks source link

convert the .txt files to .csv code in python #15

Closed subhadeepCh closed 3 years ago

subhadeepCh commented 3 years ago

This code can be used to convert the data of all the given files at once using python. Input Source Path and Destination Path to traverse through the files and convert them into csv Requirement Python 3.x , Numpy , os , Pandas or run this in Google Colab as it is @uberspot @pachacamac @fredefox @codeniko @manuelliebchen

uberspot commented 3 years ago

This is a jupyter notebook file, not pure python. Could you convert it to normal python ? I'll merge after that. :)

subhadeepCh commented 3 years ago

Sure

On Tue, Jan 5, 2021, 11:00 PM Paul S notifications@github.com wrote:

This is a jupyter notebook file, not pure python. Could you convert it to normal python ? I'll merge after that. :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/uberspot/OpenTriviaQA/pull/15#issuecomment-754781920, or unsubscribe https://github.com/notifications/unsubscribe-auth/APEHEHABPYSDXQZIUX7F5U3SYNEEJANCNFSM4VVU5KOA .

--

Established U/S 3 of UGC Act and Accredited by NBA of  AICTE and NAAC of UGC

Visit us @ http://www.kiit.ac.in http://www.kiit.ac.in/

Follow us @ |Twitter https://www.twitter.com/KIITUniversity/|Facebook https://www.facebook.com/KIITUniversity|Instagram https://www.instagram.com/KIITUniversity/**|

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and delete all copies of this message and any attachments.

 VIRUS WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any

attachments for the presence of viruses. The institute accepts no liability for any damage caused by any virus transmitted by this email.

subhadeepCh commented 3 years ago

.py file Added, to convert the txt to CSV in python @uberspot @pachacamac @fredefox @codeniko @manuelliebchen