You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\reshape\merge.py", line 1443, in _get_join_indexers
tolerance)
TypeError: 'NoneType' object is not callable
_asof_by_function(self.direction, on_type, by_type) returns None when on_type="double" and by_type="double".
returns sensibly with on_type="double" and by_type="int64_t".
Expected Output
Since regular pd.merge works on float types, I'd expect this one to as well, though it was a simple workaround once I understood. Maybe a clearer error message if you intend it not to work?
Uh oh!
There was an error while loading. Please reload this page.
Code Sample, a copy-pastable example if possible
errors with
while
works fine
Problem description
_asof_by_function(self.direction, on_type, by_type)
returnsNone
whenon_type="double"
andby_type="double"
.returns sensibly with
on_type="double"
andby_type="int64_t"
.Expected Output
Since regular pd.merge works on float types, I'd expect this one to as well, though it was a simple workaround once I understood. Maybe a clearer error message if you intend it not to work?
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.4
pytest: 3.7.1
pip: 18.0
setuptools: 40.0.0
Cython: 0.28.5
numpy: 1.15.0
scipy: 1.1.0
pyarrow: None
xarray: 0.10.8
IPython: 6.5.0
sphinx: 1.7.6
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.7
feather: None
matplotlib: 2.2.3
openpyxl: 2.5.5
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.5
lxml: 4.2.4
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: 1.2.10
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: