plot: ufunc 'multiply' did not contain a loop with signature matching types dtype('<U32') dtype('<U32') dtype('<U32')
See original GitHub issueI loaded the SF fire department dataset, and … fire-small.txt
import databricks.koalas as ks
data = ks.read_csv("fire-small.txt", header=0, usecols=range(40))
data['Call Type'].plot.hist()
Error
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<command-3469248> in <module>()
----> 1 df['Call Type'].plot.hist()
/local_disk0/pythonVirtualEnvDirs/virtualEnv-b7eb6ad9-1ecb-4cf5-bb84-76d207603fc1/lib/python3.5/site-packages/databricks/koalas/plot.py in hist(self, bins, **kwds)
540 axes : :class:`matplotlib.axes.Axes` or numpy.ndarray of them
541 """
--> 542 return self(kind='hist', bins=bins, **kwds)
543
544 def kde(self, bw_method=None, ind=None, **kwds):
/local_disk0/pythonVirtualEnvDirs/virtualEnv-b7eb6ad9-1ecb-4cf5-bb84-76d207603fc1/lib/python3.5/site-packages/databricks/koalas/plot.py in __call__(self, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
466 colormap=colormap, table=table, yerr=yerr,
467 xerr=xerr, label=label, secondary_y=secondary_y,
--> 468 **kwds)
469 __call__.__doc__ = plot_series.__doc__
470
/local_disk0/pythonVirtualEnvDirs/virtualEnv-b7eb6ad9-1ecb-4cf5-bb84-76d207603fc1/lib/python3.5/site-packages/databricks/koalas/plot.py in plot_series(data, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds)
421 yerr=yerr, xerr=xerr,
422 label=label, secondary_y=secondary_y,
--> 423 **kwds)
424
425
/local_disk0/pythonVirtualEnvDirs/virtualEnv-b7eb6ad9-1ecb-4cf5-bb84-76d207603fc1/lib/python3.5/site-packages/databricks/koalas/plot.py in _plot(data, x, y, subplots, ax, kind, **kwds)
437
438 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds)
--> 439 plot_obj.generate()
440 plot_obj.draw()
441 return plot_obj.result
/local_disk0/pythonVirtualEnvDirs/virtualEnv-b7eb6ad9-1ecb-4cf5-bb84-76d207603fc1/lib/python3.5/site-packages/pandas/plotting/_core.py in generate(self)
246
247 def generate(self):
--> 248 self._args_adjust()
249 self._compute_plot_data()
250 self._setup_subplots()
/local_disk0/pythonVirtualEnvDirs/virtualEnv-b7eb6ad9-1ecb-4cf5-bb84-76d207603fc1/lib/python3.5/site-packages/databricks/koalas/plot.py in _args_adjust(self)
364 summary = KoalasHistPlotSummary(self.data, self.data.name)
365 # computes boundaries for the column
--> 366 self.bins = summary.get_bins(self.bins)
367
368 if is_list_like(self.bottom):
/local_disk0/pythonVirtualEnvDirs/virtualEnv-b7eb6ad9-1ecb-4cf5-bb84-76d207603fc1/lib/python3.5/site-packages/databricks/koalas/plot.py in get_bins(self, n_bins)
330 .collect()[0])
331 # divides the boundaries into bins
--> 332 return np.linspace(boundaries[0], boundaries[1], n_bins + 1)
333
334 def calc_histogram(self, bins):
/local_disk0/pythonVirtualEnvDirs/virtualEnv-b7eb6ad9-1ecb-4cf5-bb84-76d207603fc1/lib/python3.5/site-packages/numpy/core/function_base.py in linspace(start, stop, num, endpoint, retstep, dtype, axis)
133 # Convert float/complex array scalars to float, gh-3504
134 # and make sure one can use variables that have an __array_interface__, gh-6634
--> 135 start = asanyarray(start) * 1.0
136 stop = asanyarray(stop) * 1.0
137
TypeError: ufunc 'multiply' did not contain a loop with signature matching types dtype('<U32') dtype('<U32') dtype('<U32')
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Why do I get "ufunc 'multiply' did not contain a loop with ...
Why do I get "ufunc 'multiply' did not contain a loop with signature matching types dtype('S32') dtype('S32') dtype('S32')" with values from raw_input. Save ......
Read more >TypeError: ufunc 'multiply' did not contain a loop with signature ...
the following error may appear. In this case, dtype is a problem that does not match. The data types of numpy are listed...
Read more >[FIXED] sklearn.manifold.TSNE TypeError: ufunc 'multiply' did ...
TSNE TypeError: ufunc 'multiply' did not contain a loop with signature matching types (dtype('<U32'), dtype('<U32'))...).
Read more >Python Error Code: "ufunc 'add' did not contain a loop ... - Reddit
Python Error Code: "ufunc 'add' did not contain a loop with signature matching types (dtype('<U32'), dtype('<U32')) -> dtype('<U32')".
Read more >Pandas : Python: ufunc 'add' did not contain a loop ... - YouTube
Pandas : Python: ufunc 'add' did not contain a loop with signature matching types dtype ('S21') dtype ('S21') dtype ('S21') [ Beautify Your ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dvgodoy mind submitting a pull request to fix this?
I’d close this since this is fixed at #766.