After learning how to download and preprocess financial data, it is time to learn how to plot it in a visually appealing way. We cover two approaches using the following:
- The default plot method of a pandas DataFrame
- A combination of the plotly and cufflinks libraries
The plotly library is built on top of d3.js (a JavaScript library used for creating interactive visualizations in web browsers) and is known for creating high-quality plots with a significant degree of interactivity (inspecting values of observations, viewing tooltips of a given point, zooming in, and so on). Plotly is also the company responsible for developing this library and provides hosting for our visualizations. We can create an infinite number of offline visualizations and up to 25 free ones to share online (with a limited number of views per day).
The cufflinks library also...