From 802ef80e933ab76dbece332ad0872375d4aecca1 Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Mon, 17 Jan 2022 11:57:20 +0000 Subject: [PATCH] code sample for #45412 --- bisect/45412.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 bisect/45412.py diff --git a/bisect/45412.py b/bisect/45412.py new file mode 100644 index 0000000000000..8d1ea40fdcccf --- /dev/null +++ b/bisect/45412.py @@ -0,0 +1,13 @@ +# BUG: can create IntervalDtype[float32] but not IntervalArray[float32] #45412 + +import pandas as pd + +print(pd.__version__) + +try: + result = pd.core.dtypes.common.pandas_dtype("interval[float32, right]") + print(result) +except TypeError as e: + print(e) +else: + exit(1)