sklearn preprocessor error - _determine_key_type is not defined

I am using a simple dataset off of the Datacamp site - multiple columns, some categorical, some numeric, looking to predict clicks on a website.

No problems with specifying the cat and num columns to be processed, but when I attempt to use the preprocessor.fit_transform function I get:

NameError: name '_determine_key_type' is not defined. 

Why is this happening and how to fix it?

Code below:

import pandas as pd
import numpy as np
from sklearn import preprocessing
from sklearn.compose import ColumnTransformer
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import PowerTransformer, StandardScaler, OneHotEncoder
from sklearn.model_selection import train_test_split, RandomizedSearchCV
from sklearn.metrics import confusion_matrix, precision_score, recall_score
from sklearn.impute import SimpleImputer

numeric_features = [
"search_engine_type_count",
"product_type_count",
"advertiser_type_count",]

categorical_features = [
"banner_pos",
"device_type",
"device_conn_type",
"product_type",
"advertiser_type",]

numeric_transformer = Pipeline(
steps=[
    ("boxcox", PowerTransformer(method="box-cox", standardize=False)),
    ("scaler", StandardScaler()),])

categorical_transformer = OneHotEncoder(handle_unknown="ignore", sparse=False)

preprocessor = ColumnTransformer(
transformers=[
    ("num", numeric_transformer, numeric_features),
    ("cat", categorical_transformer, categorical_features),])

processed_features = pd.DataFrame(
preprocessor.fit_transform(web_browser_df), columns=preprocessor.get_feature_names_out())

NameError: name '_determine_key_type' is not defined
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum