> ## Documentation Index
> Fetch the complete documentation index at: https://octo-98895abd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Python: pandas and Polars

> Read a series and convert it locally to a DataFrame.

Install the SDK from the repository release containing operation routes:

```bash theme={null}
pip install 'silo-client @ git+https://github.com/PedroDnT/SILO-BZ.git#subdirectory=sdk'
```

```python theme={null}
from silo_client import SiloClient

with SiloClient() as silo:  # reads SILO_TOKEN when set
    result = silo.v2.get("macro/series", series="CDI")
    result = result.collect(max_pages=10)
    df = result.to_pandas()  # or result.to_polars()
    print(result.meta["tier"])
```

`collect` makes additional requests, up to the supplied page count including the first page.
A failed page raises an error. A tier cap or remaining page makes the result incomplete:
DataFrame conversion refuses it unless you explicitly pass `allow_partial=True`.

Conversion itself makes no requests. Identifiers stay strings, missing values stay null,
and JSON decimals retain their precision. No values are filled or annualized.
Inspect `result.meta` for units-related warnings and access limits; units returned in rows remain columns.

For operations with a request body:

```python theme={null}
result = silo.v2.post("portfolio/fees", body={"cnpjs": fund_cnpjs})
```

Existing SDK methods retain their original behavior. See the [operation directory](https://octo-98895abd.mintlify.site/api-docs/v2/endpoints.md)
for routes and the [response guide](https://octo-98895abd.mintlify.site/api-docs/v2/responses.md) for pagination and errors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.