Error: ValueError('%r cannot be used to seed a numpy.random.RandomState')
Because you are creating a IsolationForest instance with random_state getting initialised to pandas.DataFrame. The code docs for random_state explain it as  


  random_state : int, RandomState instance or None, optional (default=None). If int, random_state is the seed used by the random number generator; If RandomState instance, random_state is the random number generator; If None, the random number generator is the RandomState instance used by np.random.