Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# coding: utf-8
"""
주신 질문에 대한 해결책을 제안합니다.
빅파이: 빅데이터를 위한 파이썬
www.facebook.com/bigpython
"""
import pandas as pd
from pandas import Series, DataFrame
수치 = Series([2,1,3,0,1.5], index=list('ABCDE'))
프레임 = pd.concat([수치]*len(수치), axis=1)
프레임.columns = 수치.index
결과 = 프레임 - 수치
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment