Book Image

Interactive Data Visualization with Python - Second Edition

By : Abha Belorkar, Sharath Chandra Guntuku, Shubhangi Hora, Anshu Kumar
Book Image

Interactive Data Visualization with Python - Second Edition

By: Abha Belorkar, Sharath Chandra Guntuku, Shubhangi Hora, Anshu Kumar

Overview of this book

With so much data being continuously generated, developers, who can present data as impactful and interesting visualizations, are always in demand. Interactive Data Visualization with Python sharpens your data exploration skills, tells you everything there is to know about interactive data visualization in Python. You'll begin by learning how to draw various plots with Matplotlib and Seaborn, the non-interactive data visualization libraries. You'll study different types of visualizations, compare them, and find out how to select a particular type of visualization to suit your requirements. After you get a hang of the various non-interactive visualization libraries, you'll learn the principles of intuitive and persuasive data visualization, and use Bokeh and Plotly to transform your visuals into strong stories. You'll also gain insight into how interactive data and model visualization can optimize the performance of a regression model. By the end of the course, you'll have a new skill set that'll make you the go-to person for transforming data visualizations into engaging and interesting stories.
Table of Contents (9 chapters)

Resampling in Temporal Data

Resampling involves changing the frequency of the time values in a dataset. If data observed over time has been collected over different frequencies, for example, over weeks or months, resampling can be used to normalize datasets for a given frequency. During predictive modeling, resampling is widely used to perform feature engineering.

There are two types of resampling:

  • Upsampling: Changing the time from, for example, minutes to seconds. Upsampling helps us to visualize and analyze data in more detail, and these fine-grained observations are calculated using interpolation.
  • Downsampling: Changing the time from, for example, months to years. Downsampling helps to summarize and get a general sense of trends in data.

Common Pitfalls of Upsampling and Downsampling

Upsampling leads to NaN values. The methods used in interpolation are linear or cubic splines for imputing NaN values. This might not represent the original data, so the analysis...