Friday, July 14, 2017

Python and R Wrappers for the ergast F1 Results Data API

A week or so ago, Will Vaughan tipped me off to a Python package he's started putting together to wrap the ergast motor racing results database: ergast-python.

He's also making a start on some Wrangling F1 Data Jupyter notebooks that make use of the wrapper: wranglingf1data.

Very nice:-)

It also prompted me to finally split out my own crappy ergast API wrapper R code into an R package of its own: ergastR.

It needs tidying up, and could probably do with being updated to "new R" and a more recent JSON package, but it should work enough to cope with my own Wrangling F1 Data With R code. (If it doesn't, shout!)

The R package also needs work on the following: cacheing, so that we don't keep hitting the ergast API unnecessarily; paged results handling (I fudge this a bit at the moment by explicitly setting a large results limit); and dual handling of ergast API versus ergast database requests. (If a database connection string is passed, use that rather than make a call to the ergast API.)

Any issues with the R package, please feel free to raise them on the Github site, although I can't guarantee how quickly I'll get to them...

28 comments:

  1. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me.
    Python Online training
    Python Course institute in Bangalore

    ReplyDelete
  2. Nice information.
    For Data Science training in Bangalore, Visit:
    Data Science training in Bangalore

    ReplyDelete
  3. I agree with a lot of the points you made in this article. If you are looking for the Serp Api, then visit SERP House. I love your content, they are very nice and very useful to us and this text is worth everyone’s attention.

    ReplyDelete
  4. I found your blog on Google and read a few of your other posts. I just added you to my Google News Reader. You can also visit API Development And Integration for more Metricoid Technology Solutions related information and knowledge, Keep up the great work Look forward to reading more from you in the future.

    ReplyDelete
  5. Thanks mate. I am really impressed with your writing talents and also with the layout on your weblog. Appreciate, Is this a paid subject matter or did you customize it yourself? Either way keep up the nice quality writing, it is rare to peer a nice weblog like this one nowadays. Thank you, check also event marketing and corporate goodie bag ideas

    ReplyDelete
  6. Keep up the work, great job. And I am satisfied to read your article. Turkey transit visa for US citizens. Within 5 to 10 minutes you can fill your visa application form turkey.

    ReplyDelete
  7. This is a wonderful inspiring article. I am practically satisfied with your great work. You have really put together extremely helpful data. Keep it up... foreign citizens can apply for their evisa kenya online in a simple, secure, and convenient way.

    ReplyDelete
  8. I appreciate you sharing this wonderful content with us. Thanks for adding value and click on the link to apply for an urgent e visa for India. Now it is easier to apply for an e-visa to India.

    ReplyDelete
  9. İnstagram takipçi satın al! İnstagram takipçi sitesi ile takipçi satın al sende sosyal medyada fenomen olmaya bir adım at. Sende hemen instagram takipçi satın almak istiyorsan tıkla:

    1- takipçi satın al

    2- takipçi satın al

    3- takipçi satın al

    ReplyDelete
  10. I definitely agree with this post, and would love to read more topics like this . And I will definitely bookmark this website. Do You Know Azerbaijan urgent visa approved within as quickly as 3 hours.

    ReplyDelete
  11. For the first time in a long time, I read a really amazing and truly vital post. It is my pleasure to inform you that if you are planning to travel to Turkey, a Turkish evisa is the best option for getting a visa because of its easy process and reduced cost and time.

    ReplyDelete
  12. Thanks for taking the time to talk about it; it's something I was very excited to know about. I just inform you that we provide IT solutions to various industries like:- education, automotive, finance services, health and insurance and many more. By the use of the latest technology for the clients of B2B & B2C both.

    ReplyDelete

There seem to be a few issues with posting comments. I think you need to preview your comment before you can submit it... Any problems, send me a message on twitter: @psychemedia