build_continuous_partition_object throws a TypeError
:
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-291-2e413334f789> in <module>
1 column = 'sizediscprcntamt'
----> 2 partition_object = build_continuous_partition_object(dataset=batch,
3 column=column,
4 allow_relative_error='lower')
5 print(is_valid_continuous_partition_object(partition_object))
~\AppData\Local\Continuum\anaconda3\envs\ge\lib\site-packages\great_expectations\dataset\util.py in build_continuous_partition_object(dataset, column, bins, n_bins, allow_relative_error)
230 See :ref:`partition_object`.
231 """
--> 232 bins = dataset.get_column_partition(column, bins, n_bins, allow_relative_error)
233 if isinstance(bins, np.ndarray):
234 bins = bins.tolist()
~\AppData\Local\Continuum\anaconda3\envs\ge\lib\site-packages\great_expectations\dataset\dataset.py in get_column_partition(self, column, bins, n_bins, allow_relative_error)
382 int(np.ceil(sturges)), int(np.ceil(float(max_ - min_) / fd))
383 )
--> 384 bins = np.linspace(start=float(min_), stop=float(max_), num=n_bins + 1)
385 else:
386 raise ValueError("Invalid parameter for bins argument")
<__array_function__ internals> in linspace(*args, **kwargs)
~\AppData\Local\Continuum\anaconda3\envs\ge\lib\site-packages\numpy\core\function_base.py in linspace(start, stop, num, endpoint, retstep, dtype, axis)
111
112 """
--> 113 num = operator.index(num)
114 if num < 0:
115 raise ValueError("Number of samples, %s, must be non-negative." % num)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
My column is of float dtype and doesn’t have any missing values.