> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# min()

> @overload\
>
> atoti.agg.min(\
>
>     *operand*: LevelOrVariableColumnConvertible,\
>
>     /,\
>
>     \*,\
>
>     *provider\_compatibility*: [Literal](https://docs.python.org/3/library/typing.html#typing.Literal)\['append-only', 'full'] | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
> ) → MeasureDefinition

> @overload\
>
> atoti.agg.min(\
>
>     *operand*: VariableMeasureConvertible,\
>
>     /,\
>
>     \*,\
>
>     *scope*: [CumulativeScope](https://docs.activeviam.com/engine/python-sdk/6.2/api/atoti.scope.CumulativeScope.md#atoti.CumulativeScope) | [SiblingsScope](https://docs.activeviam.com/engine/python-sdk/6.2/api/atoti.scope.SiblingsScope.md#atoti.SiblingsScope) | [OriginScope](https://docs.activeviam.com/engine/python-sdk/6.2/api/atoti.scope.OriginScope.md#atoti.OriginScope),\
>
> ) → MeasureDefinition

Return a measure equal to the minimum of the passed measure across the specified scope.

### Parameters

#### *operand*

The measure or table column to aggregate.

#### *provider\_compatibility*

How the [`AggregateProvider`](./atoti.aggregate_provider.AggregateProvider#atoti.AggregateProvider) instances storing this measure handle transactions.
With `"append-only"`, they keep a lighter data structure to store this measure’s aggregates.
In exchange, a transaction updating or deleting rows contributing to the stored aggregates will fail.
With `"full"`, they keep the data structures needed to handle any transaction.
With `None` (the default), the system is free to pick a suitable implementation.
Only supported when *operand* is a table column.

> [!NOTE]
>
> Added in version 6.2.1.

#### *scope*

The [`aggregation scope`](./atoti.scope#module-atoti.scope).

***

```pycon theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
>>> df = pd.DataFrame(
...     columns=["id", "Quantity", "Price", "Other"],
...     data=[
...         ("a1", 100, 12.5, 1),
...         ("a2", 10, 43, 2),
...         ("a3", 1000, 25.9, 2),
...     ],
... )
>>> table = session.read_pandas(
...     df,
...     keys=["id"],
...     table_name="Product",
... )
>>> table.head().sort_index()
    Quantity  Price  Other
id
a1       100   12.5      1
a2        10   43.0      2
a3      1000   25.9      2
>>> cube = session.create_cube(table)
>>> m = cube.measures
    >>> m["Minimum Price"] = tt.agg.min(table["Price"])
    >>> cube.query(m["Minimum Price"])
      Minimum Price
    0         12.50
```
