Skip to content

Instantly share code, notes, and snippets.

@lseongjoo
Last active March 3, 2016 02:37
Show Gist options
  • Save lseongjoo/717b3ae0e8ab1aaea551 to your computer and use it in GitHub Desktop.
Save lseongjoo/717b3ae0e8ab1aaea551 to your computer and use it in GitHub Desktop.
# 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