การ join โดยใช้ index

Pandas Joins for Spreadsheet Users

John Miller

Principal Data Scientist

การกำหนด index ใน pandas

$$

  • การกำหนด index แบบตัวเลขทั่วไป

numeric index

$$

  • การกำหนด index หลายระดับแบบกำหนดเอง

tailored index

Pandas Joins for Spreadsheet Users

การ join บน index

$$

DataFrame.join(other, how='')

  • คล้ายกับการ merge บนคอลัมน์
  • join บน index เป็นค่าเริ่มต้น
  • สามารถ join หลาย DataFrame พร้อมกันได้

df.join([df2, df3], how='')

pandas hanging out

Pandas Joins for Spreadsheet Users

มาฝึกกันเถอะ!

Pandas Joins for Spreadsheet Users

Preparing Video For Download...