# timeseriesdatasets – Examples

This page provides practical examples of using `timeseriesdatasets` for data analysis and exploration.

## Basic Examples

### Example 1: Loading and Exploring a Dataset

Learn how to load a dataset and perform basic exploration.

```python
import timeseriesdatasets as ts

# Load the Amazon stock price time series from 1997 to 2020.
amazon_001 = ts.load_dataset("amazon_stock")

# Display first few rows
print(amazon_001.head())

# Check dataset shape
print(f"\nDataset shape: {amazon_001.shape}")

# View column names
print(f"\nColumns: {list(amazon_001.columns)}")

# Get summary statistics
print("\nSummary statistics:")
print(amazon_001.describe())

# Check for missing values
print("\nMissing values:")
print(amazon_001.isnull().sum())

```

### Example 2: Exploring a Furniture store sales time series data

```python
import timeseriesdatasets as ts

# Load Furniture store sales time series dataset
furniture_store = ts.load_dataset("furniture_store_sales")

# Display first few rows
print(furniture_store.head())

# Check dataset shape
print(f"\nDataset shape: {furniture_store.shape}")

# View column names
print(f"\nColumns: {list(furniture_store.columns)}")

```