<jupyter_start><jupyter_text>pandas, Plotly & Cufflinks `plotly` is a **plotting engine** for fast easy generation of interactive **D3.js plots**. Cf. http://plot.ly.<jupyter_code>import numpy as np
import pandas as pd
import pandas.io.data as web
import plotly.plotly as py
import cufflinks as cf
py.sign_in('Python-Demo-Account', '<KEY>')<jupyter_output><empty_output><jupyter_text>Reading Financial Data<jupyter_code>symbols = ['AAPL', 'MSFT', 'YHOO']
data = pd.DataFrame()
for sym in symbols:
    data[sym] = web.DataReader(sym, data_source='yahoo')['Adj Close']
data.tail()<jupyter_output><empty_output><jupyter_text>Plotting the Data<jupyter_code>data.iplot(filename='financial', world_readable=True)
data['AAPL'].iplot(filename='best_fit', bestfit=True, colors=['pink'],
                bestfit_colors=['blue'], world_readable=True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1472957422324511, 'fraction_numerical': 0.0011507479861910242, 'mean_word_length': 7.285714285714286, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '521772', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 321, 'n_tokens_neox': 305, 'n_words': 63, 'path': 'jupserver/ipynbs/plotly.ipynb', 'repo_name': 'yhilpisch/ipynb-docker', 'size': '874'}