Last active
March 3, 2016 02:37
-
-
Save lseongjoo/717b3ae0e8ab1aaea551 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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