def _invalid_indexer(self, form, key):
        raise TypeError("cannot do {form} indexing on {klass} with these "
                        "indexers [{key}] of {kind}".format(
                            form=form, klass=type(self), key=key,
                            kind=type(key)))
consistent invalid indexer message
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/Index._invalid_indexer