In [1]:
import pandas as pd
from collections import OrderedDict
In [2]:
scientists = pd.read_csv("./data/scientists.csv")
boolean 추출과 broadcasting¶
In [3]:
bool_idx = scientists["Age"] > scientists["Age"].mean()
scientists[bool_idx]
Out[3]:
In [4]:
## 문자열 2배, 값2배 -- broadcasting
print(scientists*2)
In [5]:
from IPython.core.display import display, HTML
display(HTML("<style> .container{width:100% !important;}</style>"))
'pandas > basic' 카테고리의 다른 글
07.handling_dataframe(bool-apply) (0) | 2018.12.09 |
---|---|
05.handling_series(apply) (0) | 2018.12.09 |
04.handling_series(basic) (0) | 2018.12.09 |
03.create_data_frame (0) | 2018.12.09 |
02.basic_statistic (0) | 2018.12.09 |