elif not hasattr(aesthetics["x"], "dtype"):
x = np.asarray(aesthetics["x"])
if x.dtype.kind in DISCRETE_KINDS:
replace_auto(geom, "bar")
else:
replace_auto(geom, "histogram")
After Change
elif not hasattr(aesthetics["x"], "dtype"):
x = np.asarray(aesthetics["x"])
if array_kind.discrete(x):
replace_auto(geom, "bar")
else:
replace_auto(geom, "histogram")