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
merge_asof does not seem to be working with multiple "by" keys. The output looks like it only takes into account the first key in the list - with key_1 first in the list, the output is the same as by=['key_1'] and with key_2 first in the list, the output is the same as by=['key_2'].
Expected Output
key_1 key_2 value
time
2016-06-02 1 2015-04-30 1.0
2016-06-02 2 2015-04-30 2.0
2016-06-03 1 2015-05-01 3.0
2016-06-03 2 2015-05-01 4.0
Actual Output
key_1 key_2 value
time
2016-06-02 1 2015-04-30 3.0
2016-06-02 2 2015-04-30 4.0
2016-06-03 1 2015-05-01 3.0
2016-06-03 2 2015-05-01 4.0
…re indexed (pandas-dev#15676)
closespandas-dev#15676
Author: Christopher C. Aycock <[email protected]>
Closespandas-dev#15679 from chrisaycock/GH15676 and squashes the following commits:
965caf2 [Christopher C. Aycock] Verify that 'by' parameters are the same length
4a2cc09 [Christopher C. Aycock] BUG: Allow multiple 'by' parameters in merge_asof() when DataFrames are indexed (pandas-dev#15676)
mattip
pushed a commit
to mattip/pandas
that referenced
this issue
Apr 3, 2017
…re indexed (pandas-dev#15676)
closespandas-dev#15676
Author: Christopher C. Aycock <[email protected]>
Closespandas-dev#15679 from chrisaycock/GH15676 and squashes the following commits:
965caf2 [Christopher C. Aycock] Verify that 'by' parameters are the same length
4a2cc09 [Christopher C. Aycock] BUG: Allow multiple 'by' parameters in merge_asof() when DataFrames are indexed (pandas-dev#15676)
Code Sample, a copy-pastable example if possible
Problem description
merge_asof does not seem to be working with multiple "by" keys. The output looks like it only takes into account the first key in the list - with
key_1
first in the list, the output is the same asby=['key_1']
and withkey_2
first in the list, the output is the same asby=['key_2']
.Expected Output
Actual Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: