강의

멘토링

커뮤니티

Inflearn Community Q&A

choth19566994's profile image
choth19566994

asked

Getting started with data analysis with Kaggle surveys

[3/13] What is Kaggler's gender and age?! value_counts vs countplot 📊

시리즈를 데이터프레임으로 변환하는 방법

Resolved

Written on

·

999

1

question = raw.iloc[0] 에서 question은 시리즈입니다.

이것을 열이름이  'Time from Start to Finish (seconds)'이고 'Duration (in seconds)'인 데이터프레임으로 바꾸려면 어떻게 해야 되나요? pd.DataFrame()에서 어떤 명령을 쓰면 될까요?

아래 사진과 같은 형태로 데이터프레임을 만들고 싶습니다.

시리즈pandas데이터프레임kaggle.indexseaborn

Answer 1

1

todaycode님의 프로필 이미지
todaycode
Instructor

안녕하세요.

제가 질문을 제대로 이해했는지 모르겠습니다.

아래와 같은 형태로 만들어 보실 수 있을것 같습니다.

pd.DataFrame({"열이름1": Series, "열이름2": Series})

Databook님의 프로필 이미지
Databook
Questioner

안녕하세요. 답변 감사합니다. 참고하여 더 고민해보겠습니다.

choth19566994's profile image
choth19566994

asked

Ask a question