---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/sparklinegroupcollection
---

# SparklineGroupCollection

## Overview

`SparklineGroupCollection` is a class in Aspose.Cells FOSS for Python.

Collection of SparklineGroup objects (ws.sparkline_groups).

This class declares 11 methods for SparklineGroupCollection objects in Python programs.
Available methods include: `Add`, `AddGroup`, `__getitem__`, `__init__`, `__iter__`, `__len__`, `add`, `add_group`, `copy`, `make_data_ref`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `count`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `count` | `int` | Read | Gets the count. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(worksheet)` | Calls __init__(worksheet) on this SparklineGroupCollection instance. |
| `add(sparkline_type, data_range: str, is_vertical: bool, location_range: str)` → `SparklineGroup` | Create a SparklineGroup and auto-populate sparklines from ranges. |
| `add_group(sparkline_type)` → `SparklineGroup` | Add an empty SparklineGroup; caller adds sparklines manually. |
| `Add(sparkline_type, data_range, is_vertical, location_range)` → `SparklineGroup` | Calls Add(sparkline_type, data_range, is_vertical, location_range) on this SparklineGroupCollection instance. |
| `AddGroup(sparkline_type)` → `SparklineGroup` | Calls AddGroup(sparkline_type) on this SparklineGroupCollection instance. |
| `make_data_ref(row)` | Calls make_data_ref(row) on this SparklineGroupCollection instance. |
| `make_data_ref(col)` | Calls make_data_ref(col) on this SparklineGroupCollection instance. |
| `__len__()` → `int` | Calls __len__ on this SparklineGroupCollection instance. |
| `__iter__()` | Calls __iter__ on this SparklineGroupCollection instance. |
| `__getitem__(index)` | Calls __getitem__(index) on this SparklineGroupCollection instance. |
| `copy(new_ws)` → `'SparklineGroupCollection'` | Calls copy(new_ws) on this SparklineGroupCollection instance. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)