언젠가는 되어있겠지
데이터 공부 노트
언젠가는 되어있겠지
전체 방문자
오늘
어제
  • 분류 전체보기 (410)
    • Programming (14)
      • Python (6)
      • Algorithm (8)
    • OS (9)
      • Linux (9)
    • DBMS (2)
      • MySQL (2)
    • IoT Apps (6)
      • AppInventor (5)
      • Arduino (1)
    • LeetCode (151)
      • Easy (136)
      • Medium (13)
      • Hard (2)
    • Course (207)
      • [IBM] Data Science (9)
      • [IBM] Data Engineering (5)
      • [Inflearn] Pandas (12)
      • [Inflearn] Public Data Anal.. (8)
      • [Kaggle] Data Science (49)
      • [Youtube] Informations (2)
      • [Coursera] Machine Learning (40)
      • [Progrmiz] Data Structure A.. (15)
      • [DataQuest] Data Engineerin.. (67)
    • Data Engineering (20)
      • [Data Quest] Handling Datas.. (16)
      • [Data Quest] Data Pipeline (4)
    • Certificate (0)
      • 빅데이터 분석기사 (0)
    • SQLD (0)
    • 하고 싶은 이야기 (0)
    • 소설 (0)

블로그 메뉴

  • 홈
  • 태그

공지사항

인기 글

태그

  • Data Science
  • Kaggle Course

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
언젠가는 되어있겠지

데이터 공부 노트

[Pandas] Return multiple columns
Programming/Python

[Pandas] Return multiple columns

2022. 7. 3. 21:00

1. How to make multiple columns

Apply method and Vectorization which can be used to apply a function on dataframe and return multiple new columns. The task making multiple columns is parsing column 'Memory' into 'HDD', 'SSD', 'Flash', 'Hybrid'.

 

2. Use Pandas Apply function

First, i will use pandas.series.apply() to apply the parsing_memory() function on the dataframe column 'Memory' to parse the memory size by creating three new columns 'HDD', 'SSD', 'Flash', and 'Hybrid' respectively. In apply function, the default argument of axis = 0. In axis = 0, values are iterated by rows.

 

Source of article :

https://kanoki.org/2022/02/11/how-to-return-multiple-columns-using-pandas-apply/

 

How to return multiple columns using pandas apply

In this article we are going to compare the performance of two approaches i.e. Apply method and Vectorization which can be used to apply a function on dataframe and return multiple new columns

kanoki.org

 

'Programming > Python' 카테고리의 다른 글

[DS] Heap  (0) 2022.09.03
[DS] Queue  (0) 2022.09.03
[Error] Error and Exception  (0) 2022.08.16
[BeautifulTable] Print list object in table format  (0) 2022.07.04
[BeautifulSoup] Web Scraping  (0) 2022.07.03
    'Programming/Python' 카테고리의 다른 글
    • [DS] Queue
    • [Error] Error and Exception
    • [BeautifulTable] Print list object in table format
    • [BeautifulSoup] Web Scraping
    언젠가는 되어있겠지
    언젠가는 되어있겠지

    티스토리툴바