merge_ordered()
doesn't validate fill_method
#55884
Labels
Error Reporting
Incorrect or improved errors from pandas
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
The docs say
fill_method
is the "Interpolation method for data", but I just triedpd.merge_ordered(..., fill_method='linear')
and it didn't interpolate.Looking closer at the docs,
fill_method
can only be either'ffill'
orNone
, but apparently that's not actually checked; for example,fill_method='carrot'
also works.Looks like this code is responsible:
pandas/pandas/core/reshape/merge.py
Lines 1859 to 1868 in a167f13
It should probably be changed to something like:
(ValueError text based on equivalent
df.interpolate
error)The text was updated successfully, but these errors were encountered: