1
有2个dataframes,是否可以使用DataFrame.mul()fill_value进行填充?
df
和
other
,用相同的专栏中,我可以看到fill_value
参数:
DataFrame.mul(other, fill_value=...)
有如下解释:
fill_value : None or float value, default None
Fill missing (NaN) values with this value. If both DataFrame locations are missing, the result will be missing
我该怎么做乘法与填充前的行为,使得对于df
不在other
那些行,我将填补前行中的其他,仍然得到结果行?
下面是一个例子:
df
1/1/2016 10
2/1/2016 20
3/1/2016 25
other
1/1/2016 1.5
3/1/2016 1.7
我想df.mul(其他),就好像其他必须采取行动
2/1/2016 1.5
以及
你能显示什么示例输入和输出数据框看起来像? –
已更新原始文章。 – MMM