【发布时间】:2021-06-29 14:22:19
【问题描述】:
我有两个 DataFrame。 第一个来自 API,第二个来自 Excel 文件。
df1
| name | description | author | status |
|---|---|---|---|
| a | Bob | inactive | |
| b | Peter | active | |
| c | Bob | inactive | |
| d | Carl | active | |
| e | Bob | inactive | |
| f | Peter | active |
df2
| name | description |
|---|---|
| a | this is a description |
| b | this is another description |
我需要根据 df1 上的每个名称,将 df2 的描述添加到 df1 该怎么做?
【问题讨论】:
标签: python pandas data-science jupyter