Pycaret throwing KeyError: 'UNSUPERVISED_DUMMY_TARGET' while running unsupervised anomaly detection on databricks notebook
Error Screenshot I am trying to run setup function in pycaret==2.3.5 on python version 3.8.10 on databricks notebook and its showing the above error.
The same code is running fine on the local system but not on databricks. Can anyone help on this?
I tried changing the versions of pycaret and python but nothing worked.
Code used:
import pandas as pd
from pycaret.anomaly import *
df = pd.read_csv("global_master_data.csv")
df_copy = df.iloc[:,7:37].copy()
df_copy = df_copy.drop(['Better For You Claim Text','First Selling OC','Manuf. Type','Privat开发者_如何学JAVAe Label Brand - Desc'],axis = 1)
exp_name = setup(data = df_copy, silent = True)
精彩评论