Traceback (most recent call last):



 "<ipython-input-15-c174bb78e628>", line 1, in <module>

runfile('/home/vivek/untitless.py', wdir='/home/vivek')



 "/home/vivek/anaconda3/envs/my_env/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 668, in runfile

execfile(filename, namespace)



 "/home/vivek/anaconda3/envs/my_env/lib/python3.6/site-packages/spyder_kernels/customize/spydercustomize.py", line 108, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)



 "/home/vivek/untitless.py", line 24, in <module>

X_encoded = onehotencoder.fit_transform(X)



 "/home/vivek/anaconda3/envs/my_env/lib/python3.6/site-packages/sklearn/preprocessing/_encoders.py", line 514, in fit_transform

self._categorical_features, copy=True)



 "/home/vivek/anaconda3/envs/my_env/lib/python3.6/site-packages/sklearn/preprocessing/base.py", line 71, in _transform_selected

X_sel = transform(X[:, ind[sel]])



 "/home/vivek/anaconda3/envs/my_env/lib/python3.6/site-packages/sklearn/preprocessing/_encoders.py", line 456, in _legacy_fit_transform

% type(X))

TypeError: Wrong type for parameter `n_values`. Expected 'auto', int or array of ints, got <class 'numpy.ndarray'>

Traceback (most recent call last):


 "/opt/conda/bin/mlflow", line 33, in <module>

sys.exit(load_entry_point('mlflow', 'console_scripts', 'mlflow')())


 "/opt/conda/bin/mlflow", line 25, in importlib_load_entry_point

return next(matches).load()


 "/opt/conda/lib/python3.8/importlib/metadata.py", line 77, in load

module = import_module(match.group('module'))


 "/opt/conda/lib/python3.8/importlib/__init__.py", line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 1014, in _gcd_import


 "<frozen importlib._bootstrap>", line 991, in _find_and_load


 "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "<frozen importlib._bootstrap>", line 1014, in _gcd_import


 "<frozen importlib._bootstrap>", line 991, in _find_and_load


 "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 671, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 783, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/app/mlflow/__init__.py", line 34, in <module>

import mlflow.tracking._model_registry.fluent


 "/app/mlflow/tracking/__init__.py", line 8, in <module>

from mlflow.tracking.client import MlflowClient


 "/app/mlflow/tracking/client.py", line 21, in <module>

from mlflow.tracking._model_registry.client import ModelRegistryClient


 "/app/mlflow/tracking/_model_registry/client.py", line 15, in <module>

from mlflow.tracking._model_registry import utils, DEFAULT_AWAIT_MAX_SLEEP_SECONDS


 "/app/mlflow/tracking/_model_registry/utils.py", line 6, in <module>

from mlflow.tracking._tracking_service.utils import (


 "/app/mlflow/tracking/_tracking_service/utils.py", line 7, in <module>

from mlflow.store.tracking.file_store import 
Store


 "/app/mlflow/store/tracking/file_store.py", line 26, in <module>

from mlflow.models import Model


 "/app/mlflow/models/__init__.py", line 23, in <module>

from .model import Model


 "/app/mlflow/models/model.py", line 12, in <module>

from mlflow.models.signature import ModelSignature


 "/app/mlflow/models/signature.py", line 16, in <module>

import pyspark.sql.dataframe


 "/opt/conda/lib/python3.8/site-packages/pyspark/__init__.py", line 51, in <module>

from pyspark.context import SparkContext


 "/opt/conda/lib/python3.8/site-packages/pyspark/context.py", line 31, in <module>

from pyspark import accumulators


 "/opt/conda/lib/python3.8/site-packages/pyspark/accumulators.py", line 97, in <module>

from pyspark.serializers import read_int, PickleSerializer


 "/opt/conda/lib/python3.8/site-packages/pyspark/serializers.py", line 71, in <module>

from pyspark import cloudpickle


 "/opt/conda/lib/python3.8/site-packages/pyspark/cloudpickle.py", line 145, in <module>

_cell_set_template_code = _make_cell_set_template_code()


 "/opt/conda/lib/python3.8/site-packages/pyspark/cloudpickle.py", line 126, in _make_cell_set_template_code

return types.CodeType(
TypeError: an integer is required (got type bytes)
