嗨,我有一个数据帧,其中songid是重复的。我正在尝试获取关联的ArtistId并创建一个包含两列的数据帧-Artist1,Artist2。你知道吗
因此,例如:对于歌曲Id 0:
Artist1 Artist2
6169 2576
对于歌曲16和有超过2行重复我想所有的排列
Artist1 Artist2
12992 2948
12992 9895
12992 5599
2948 9895
2948 5599
9895 5599
这是我的数据帧内容的一个示例:
enter image description here
Tags:
试试这个
输入:
输出:
说明:
相关问题 更多 >
编程相关推荐