astsa is a Python package designed for applied statistical time series analysis, accompanying the Springer text, "Time Series Analysis and Its Applications: With R Examples (5th Edition, 2025)". This package serves as a Python counterpart to the astsa R package, providing tools for time series analysis and data manipulation for Python users.
The astsa Python package includes:
-
CSV data files: These files are converted from the original R
.rdafiles in theastsaR package. The data files are in a more general format (CSV), making them easier to use in Python-based environments for time series analysis. -
Utility functions: Useful Python functions for time series analysis, including utilities for processing and analyzing time series data. These functions are designed to help you apply statistical methods to your time series data in a straightforward manner.
You can install astsa using pip:
pip install astsaAlternatively, you can install directly from the GitHub repository:
pip install git+https://github.com/shishitao/astsa.gitOnce installed, you can start using astsa by importing the package and loading the relevant data and functions for your analysis:
import astsa
# Example usage of loading the Johnson and Johnson quarterly earnings data
df = astsa.load_jj()For detailed examples and documentation, please refer to the files in the repository.
This project is licensed under the terms of the GNU General Public License.