How can Python’s pandas library be used to analyze time series data? Let’s find out. The pandas library is frequently used to import, manage, and analyze datasets in a variety of formats. In this article, we’ll use it to analyze Microsoft’s stock prices for previous years. We’ll also see how to perform basic tasks, such as time resampling and time shifting, with pandas. What is Time Series Data? Time series data contains values dependent on some sort of time unit.