Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Indexing 从另一个数据帧筛选具有正确索引的行_Indexing - Fatal编程技术网

Indexing 从另一个数据帧筛选具有正确索引的行

Indexing 从另一个数据帧筛选具有正确索引的行,indexing,Indexing,我有两个数据帧(数字是索引) df1: 这是一只狗 那男孩正在跑步 婴儿在哭 这地方很漂亮 这条路不好 电视开着 df2: 婴儿在哭 这条路不好 这是一只狗 我想要一个新的数据帧df3,如下所示: 婴儿在哭 这条路不好 这是一只狗

我有两个数据帧(数字是索引)

df1:

这是一只狗 那男孩正在跑步 婴儿在哭 这地方很漂亮 这条路不好 电视开着

df2:

婴儿在哭 这条路不好 这是一只狗

我想要一个新的数据帧df3,如下所示:

婴儿在哭 这条路不好 这是一只狗