Fix pandas indexing error
#434

Mael-Le-Garrec wants to merge fix/pandas_indexing into master

We do not currently have an analysis of these two commits