Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
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

Product type Book
Published in Aug 2018
Publisher
ISBN-13 9781789537000
Pages 90 pages
Edition 1st Edition
Languages
Author (1):
BignumWorks Software LLP BignumWorks Software LLP
Profile icon BignumWorks Software LLP
Toc

Getting, reading in, and cleaning bitcoin price data

We will start by importing the necessary modules.

Import pandas to enable you to read in the data and start exploring it. The following screenshot shows the import pandas command:

Also, import matplotlib for drawing plots from the data.

We need to set some options for pandas and matplotlib. The following screenshot shows the command for importing matplotlib:

The first option we will set is called options.mode.chained_assignment = None.

The preceding option is to make sure that the operations are for the cleanup, which will be performed on the pandas DataFrame objects; we want the cleanup to happen on the original DataFrame objects and not on copies.

The following screenshot shows the options.mode.chained_assignment = None option:

Also, set matplotlib to visualize and display all the charts shown in the following screenshot...

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 $15.99/month. Cancel anytime