我有一个用Camel Restlet在Spring boot 1.2中编写的旧代码。该配置以XML编写。有一个web.xml可以加载Rest Services的上下文
web.xml
In [41]: pd.concat([df, series])
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
~/Dropbox/Programming/Workspace/django/super_trading_project/super_trading/backtester/event_driven/data_handlers/db_data_handler.py in <module>()
----> 1 pd.concat([df, series])
~/.pyenv/versions/super_trading_project/lib/python3.6/site-packages/pandas/core/reshape/concat.py in concat(objs, axis, join, join_axes, ignore_index, keys, levels, names, verify_integrity, sort, copy)
223 keys=keys, levels=levels, names=names,
224 verify_integrity=verify_integrity,
--> 225 copy=copy, sort=sort)
226 return op.get_result()
227
~/.pyenv/versions/super_trading_project/lib/python3.6/site-packages/pandas/core/reshape/concat.py in __init__(self, objs, axis, join, join_axes, keys, levels, names, ignore_index, verify_integrity, copy, sort)
376 self.copy = copy
377
--> 378 self.new_axes = self._get_new_axes()
379
380 def get_result(self):
~/.pyenv/versions/super_trading_project/lib/python3.6/site-packages/pandas/core/reshape/concat.py in _get_new_axes(self)
443 if i == self.axis:
444 continue
--> 445 new_axes[i] = self._get_comb_axis(i)
446 else:
447 if len(self.join_axes) != ndim - 1:
~/.pyenv/versions/super_trading_project/lib/python3.6/site-packages/pandas/core/reshape/concat.py in _get_comb_axis(self, i)
464 return _get_objs_combined_axis(self.objs, axis=data_axis,
465 intersect=self.intersect,
--> 466 sort=self.sort)
467 except IndexError:
468 types = [type(x).__name__ for x in self.objs]
~/.pyenv/versions/super_trading_project/lib/python3.6/site-packages/pandas/core/indexes/api.py in _get_objs_combined_axis(objs, intersect, axis, sort)
52 if hasattr(obj, '_get_axis')]
53 if obs_idxes:
---> 54 return _get_combined_index(obs_idxes, intersect=intersect, sort=sort)
55
56
~/.pyenv/versions/super_trading_project/lib/python3.6/site-packages/pandas/core/indexes/api.py in _get_combined_index(indexes, intersect, sort)
67 index = index.intersection(other)
68 else:
---> 69 index = _union_indexes(indexes, sort=sort)
70 index = _ensure_index(index)
71
~/.pyenv/versions/super_trading_project/lib/python3.6/site-packages/pandas/core/indexes/api.py in _union_indexes(indexes, sort)
105 else:
106 for other in indexes[1:]:
--> 107 result = result.union(other)
108 return result
109 elif kind == 'array':
~/.pyenv/versions/super_trading_project/lib/python3.6/site-packages/pandas/core/indexes/multi.py in union(self, other)
2765
2766 uniq_tuples = lib.fast_unique_multiple([self._ndarray_values,
-> 2767 other._ndarray_values])
2768 return MultiIndex.from_arrays(lzip(*uniq_tuples), sortorder=0,
2769 names=result_names)
pandas/_libs/lib.pyx in pandas._libs.lib.fast_unique_multiple()
ValueError: Buffer dtype mismatch, expected 'Python object' but got 'long'
如何将其移至基于Java的配置