In order to process the Bitcoin data, the first step is to get started with iPython. As mentioned in earlier chapters, iPython can be installed in different ways. One of the ways is described in Chapter 6, Modeling Structured Data, and Chapter 15, Modeling IMDb Data Points with Python, using Anaconda. Assuming you have iPython running, let's open a notebook and get started.
Importing Bitcoin data into iPython
Importing required libraries
The first step is to import all the required libraries. This can be done as follows:
#import the packages
import math
import pandas as pd
import numpy as np
import os
from pandas import DataFrame
from sklearn.cluster import KMeans
from sklearn import preprocessing
import matplotlib.pyplot as...