ValueError: You are trying to merge on int32 and object columns. If you wish to proceed you should use pd.concat
Appears only in single-processing:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-6-b664c5c248e5> in <module>()
15
16 CRL = COREG_LOCAL(im_reference,im_target,**kwargs)
---> 17 CRL.view_CoRegPoints(hide_filtered=False, figsize = (15, 15))
D://Daten/Code/python/arosics\arosics\CoReg_local.py in view_CoRegPoints(self, shapes2plot, attribute2plot, cmap, exclude_fillVals, backgroundIm, hide_filtered, figsize, title, vector_scale, savefigPath, savefigDPI, showFig, vmin, vmax, return_map, zoomable)
380
381 # transform all points of tie point grid to LonLat
--> 382 outlierCols = [c for c in self.CoRegPoints_table.columns if 'OUTLIER' in c]
383 attr2include = ['geometry', attribute2plot] + outlierCols + ['X_SHIFT_M', 'Y_SHIFT_M']
384 GDF = self.CoRegPoints_table.loc[self.CoRegPoints_table.X_SHIFT_M != self.outFillVal, attr2include].copy()\
D://Daten/Code/python/arosics\arosics\CoReg_local.py in CoRegPoints_table(self)
321 """
322
--> 323 return self.tiepoint_grid.CoRegPoints_table
324
325 @property
D://Daten/Code/python/arosics\arosics\CoReg_local.py in tiepoint_grid(self)
307 v=self.v,
308 q=self.q)
--> 309 self._tiepoint_grid.get_CoRegPoints_table()
310
311 if self.v:
D://Daten/Code/python/arosics\arosics\Tie_Point_Grid.py in get_CoRegPoints_table(self)
375 'SSIM_IMPROVED', 'RELIABILITY', 'LAST_ERR'])
376
--> 377 GDF = GDF.merge(records, on='POINT_ID', how="inner")
378 GDF = GDF.fillna(int(self.outFillVal))
379
D:\Programme\Anaconda3\envs\enpt\lib\site-packages\geopandas\geodataframe.py in merge(self, *args, **kwargs)
473
474 def merge(self, *args, **kwargs):
--> 475 result = DataFrame.merge(self, *args, **kwargs)
476 geo_col = self._geometry_column_name
477 if isinstance(result, DataFrame) and geo_col in result:
D:\Programme\Anaconda3\envs\enpt\lib\site-packages\pandas\core\frame.py in merge(self, right, how, on, left_on, right_on, left_index, right_index, sort, suffixes, copy, indicator, validate)
6387 right_on=right_on, left_index=left_index,
6388 right_index=right_index, sort=sort, suffixes=suffixes,
-> 6389 copy=copy, indicator=indicator, validate=validate)
6390
6391 def round(self, decimals=0, *args, **kwargs):
D:\Programme\Anaconda3\envs\enpt\lib\site-packages\pandas\core\reshape\merge.py in merge(left, right, how, on, left_on, right_on, left_index, right_index, sort, suffixes, copy, indicator, validate)
59 right_index=right_index, sort=sort, suffixes=suffixes,
60 copy=copy, indicator=indicator,
---> 61 validate=validate)
62 return op.get_result()
63
D:\Programme\Anaconda3\envs\enpt\lib\site-packages\pandas\core\reshape\merge.py in __init__(self, left, right, how, on, left_on, right_on, axis, left_index, right_index, sort, suffixes, copy, indicator, validate)
553 # validate the merge keys dtypes. We may need to coerce
554 # to avoid incompat dtypes
--> 555 self._maybe_coerce_merge_keys()
556
557 # If argument passed to validate,
D:\Programme\Anaconda3\envs\enpt\lib\site-packages\pandas\core\reshape\merge.py in _maybe_coerce_merge_keys(self)
981 elif ((is_numeric_dtype(lk) and not is_bool_dtype(lk))
982 and not is_numeric_dtype(rk)):
--> 983 raise ValueError(msg)
984 elif (not is_numeric_dtype(lk)
985 and (is_numeric_dtype(rk) and not is_bool_dtype(rk))):
ValueError: You are trying to merge on int32 and object columns. If you wish to proceed you should use pd.concat