Question: I have list of Active Directory Users's Guid, I need to load a set of properties of those users for a specific reporting. To do this, if we make a bind for each Guid, then it will be a costly one. Whether with DirectorySearcher, can we provide multiple Guid(say 1000) as filter and load the properties?.

Answer: 
```
dict (zip(data['position'], data['letter']))

```

this will give you:

```
{1: 'a', 2: 'b', 3: 'c', 4: 'd', 5: 'e'}

```
Here are two other ways tested with the following df.

```
df = pd.DataFrame(np.random.randint(0,10,10000).reshape(5000,2),columns=list('AB'))

```

using `to_records()`

```
dict(df.to_records(index=False))

```

using `MultiIndex.from_frame()`

```
dict(pd.MultiIndex.from_frame(df))

```

Time of each.

```
24.6 ms ± 847 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)
1.86 ms ± 11.6 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)

```