Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Exploratory Hour 行を結合する&列の値を分割する

Exploratory Hour 行を結合する&列の値を分割する

Takato Shiroto

August 28, 2019
Tweet

More Decks by Takato Shiroto

Other Decks in Programming

Transcript

  1. 3 εϐʔΧʔ നށ ܟొ Customer Succes EXPLORATORY ུྺ େֶࡏֶதʹϑʔυϩεΛݮΒͨ͢ΊʹɺֶੜஂମΛ্ཱͪ͛୅දΛ ຿ΊΔɻͦͷޙɺϏδωεΛ஌ΔͨΊʹԽֶϝʔΧʔͷσϡϙϯͱ

    ϑʔυςοΫܥελʔτΞοϓͰӦۀͱϚʔέςΟϯάΛܦݧɻΞϓ Ϧͷ੒௕ͷͨΊʹ͸σʔλαΠΤϯε͕ඞཁͩͱײ͡ɺΞϓϦʹಛԽ ͨ͠Ϣʔβʔͷߦಈ෼ੳπʔϧΛ։ൃ͢ΔاۀʹͯɺΞϓϦۀքͷ KPI෼ੳͳͲΛ୲౰͢Δɻݱࡏ͸Exploratory, Inc. ͰΧελϚʔαΫη εΛ୲౰͢Δ๣ΒɺσʔλͷՄࢹԽͱ୳ࡧతσʔλ෼ੳΛઐ໳ͱͯ͠ σʔλαΠΤϯεͷීٴʹऔΓ૊Ήɻ @ShirotoTakato
  2. Name Sales Thomas 15 James 100 Mike 20 Name Sales

    Mike 20 Paul 95 Susan 30 σʔλϑϨʔϜ1 Ϛʔδ (Merge) σʔλϑϨʔϜ̎
  3. σʔλϑϨʔϜ1 Ϛʔδ (Merge) σʔλϑϨʔϜ̎ Name Sales Thomas 15 James 100

    Mike 20 Name Sales Mike 20 Paul 95 Susan 30 Mike͕ॏෳ͍ͯ͠Δ
  4. ߦΛ௥Ճ/bind_rows(શͯͷߦΛ݁߹) Name Sales Thomas 15 James 100 Mike 20 Name

    Sales Mike 20 Paul 95 Susan 30 σʔλϑϨʔϜ1 σʔλϑϨʔϜ̎ Name Sales Thomas 15 James 100 Mike 20 Mike 20 Paul 95 Susan 30 Mike͸ॏෳ͍ͯ͠Δ͕ɺbind_rows Ͱ͸શͯͷߦ͕௥Ճ͞ΕΔ
  5. Name Sales Thomas 15 James 100 Mike 20 ࿨ू߹/union(Ұҙͷߦ͚ͩΛ݁߹) Name

    Sales Thomas 15 James 100 Mike 20 Name Sales Mike 20 Paul 95 Susan 30 σʔλϑϨʔϜ1 σʔλϑϨʔϜ̎ Mike͕ॏෳ͍ͯ͠ΔͨΊɺunionͰ ͸Ϛʔδઌͷॏෳ෼Λআ֎͢Δɻ Paul 95 Susan 30
  6. ੵू߹/intersect(ڞ௨͢ΔߦͷΈநग़) Name Sales Thomas 15 James 100 Mike 20 Name

    Sales Mike 20 Paul 95 Susan 30 σʔλϑϨʔϜ1 σʔλϑϨʔϜ̎ Name Sales Mike 20 Mike 20 Mike͕ॏෳ͍ͯ͠ΔͨΊɺ intersectͰMikeͷΈ͕࢒Δɻ
  7. Name Sales Thomas 15 James 100 ࠩू߹/setfdiff(ڞ௨͠ͳ͍ߦͷΈநग़) Name Sales Thomas

    15 James 100 Mike 20 Name Sales Mike 20 Paul 95 Susan 30 σʔλϑϨʔϜ1 σʔλϑϨʔϜ̎ Mike͕ॏෳ͍ͯ͠ΔͨΊɺsetdiff Ͱ͸Mike͸আ֎͞ΕΔɻ Paul 95 Susan 30
  8. Q&A