pandas imports should be nested