Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Bitcoin Programming with Python

You're reading from   Hands-On Bitcoin Programming with Python Build powerful online payment centric applications with Python

Arrow left icon
Product type Paperback
Published in Aug 2018
Publisher
ISBN-13 9781789537000
Length 90 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Harish Garg Harish Garg
Author Profile Icon Harish Garg
Harish Garg
Arrow right icon
View More author details
Toc

Collecting and analyzing Bitcoin Dice game data

In this section, we will look at the data from a dice games portal, read in the data from the API, and use pandas to convert it into a tabular format. We will also export the data and find the things that need cleaning up. We'll clean up, manipulate, and reshape the data, making it ready for analysis, and finally, we will draw a simple plot from the clean data.

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,...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime