# Accessing clinical records using almirah ```python from almirah import Database ``` ```python db = Database(name="calm-brain", host="https://calm-brain.ncbs.res.in/db-request/" , backend="request") db ``` ```python db.connect("username", "password") df = db.query(table="presenting_disorders") df[["subject", "session", "addiction"]].head() ```
subject session addiction
0 D0019 101 0
1 D0019 111 0
2 D0020 101 0
3 D0020 111 <NA>
4 D0021 101 0
```python len(df) ``` 2561 ```python len(df[df["addiction"] == 1]) ``` 522