강의

멘토링

로드맵

Inflearn Community Q&A

aal2525's profile image
aal2525

asked

Data-driven stock quant investment with Python Part 1

4.7 Groupby & aggregation - Examples & Others

선생님 질문이 있습니다!

Resolved

Written on

·

181

0

해당 행렬에서 영업이익률을 net income으로 바꿀 수는 없을까요. 즉 .rename같은 로직을 어떻게 사용할 수 있을까요. 먼저 원데이터셋에서 처리를 해야할까요 이상태에서 바꿀 수 있는 기능은 없을까요.

퀀트투자pandas

Answer 1

0

DeepingSauce님의 프로필 이미지
DeepingSauce
Instructor

안녕하세요!

컬럼이름을 바꾸는 것을 의미하시는건가요?

가장 좋은 방법은 how to change column name of pandas DataFrame 과 같은 구문으로 구글링 하는 법이 있습니다.

정답을 미리 알려드리면 rename(columns={"이전컬럼값":"새로운컬럼값", ...}) 과 같은 방법을 사용하면 됩니다.

aal2525's profile image
aal2525

asked

Ask a question