
mcq['LearningPlatformSelect'] = mcq['LearningPlatformSelect'].astype('str').apply(lambda x: x.split(','))
s = mcq.apply( lambda x: pd.Series(x['LearningPlatformSelect']), axis=1).stack().reset_index(level=1, drop=True)
s.name = 'platform'
이 부분 코드 해석이 어려워 질문 올렸었는데 아래 웹사이트 보고 해결되었습니다.
혹시 저처럼 헤매시는 분이 계시다면 아래 웹사이트 참고하시면 좋으실 것 같아 링크 첨부했습니다.
https://datamod.tistory.com/133
comment