text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/crypto-markets.csv', parse_dates=['date'], index_col='date')

btc = df[df['symbol'] == 'BTC']
btc.drop(['volume', 'symbol', 'name', 'ranknow', 'market'], axis=1, inplace=True)

btc.isnull().any()

btc.shape

sns.set()
sns.set_style('whitegrid')
btc['close'].plot(figsize=(12, 6), label='Close')
btc['close'].rolling(window=30).mean().plot(label='30 Day Avg')
plt.legend()