Getting data from the Games Web API

The user can explore the dice games data from MegaDice.com, which is available from the website's API link at https://www.megadice.com.

We will use the pandas read_JSON method to read individual winner history data from the MegaDice API link. We create a pandas DataFrame, called leaders, from this data and call in the head () method to see what this data looks like.

The code in the following screenshots shows the creation of the pandas DataFrameleaders:

The data we have imported has 703 columns, most of which are individual dates. We will delete the last column, queryTimeInSeconds, which is not really ...

Get Hands-On Bitcoin Programming with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.