---
title: "advanced_options"
slug: "advanced-options"
updated: 2021-10-17T18:06:36Z
published: 2021-10-17T18:06:36Z
---

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

# advanced_options

The advanced_options parameter for `get_hits()` is a simple wrapper to the `read_csv` function; see the Pandas [read_csv](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html) documentation to view all of the available parameters for advanced_options.

The example below uses the `index_col` parameter found in `read_csv`. This function can be very useful; therefore, IMAT Solutions has made it available for users.

```python
q = get_hits('()diabetes', store='Records', fields='extract.patient_id, extract.age', advanced_options={'index_col': 0})
```

In this example the writer is retreiving all diabetic patients. However, the report writer finds that using the default sequential index (0, 1, 2, 3…) isn't as useful as using the patient ID as the index of the dataframe. Using advanced_options gives the writer flexibility with reading data.
