import pandas as pd
scientists = pd.read_csv('./data/scientists.csv')
print(scientists)
ages = scientists['Age']
print(ages.max())
print(ages[ages > ages.mean()])
print(ages > ages.mean())
ages = scientists['Age']
print(ages + ages)
print(ages * ages)
print(ages + 100)
ages = scientists['Age']
print(pd.Series([1, 100]))
print(ages + pd.Series([1, 100]))
# 역순정렬(index의 역순, data의 역순 아님)
rev_ages = ages.sort_index(ascending=False)
print(rev_ages)
print(ages * 2)
print(ages + rev_ages) # 일치하는 인덱스끼리 연산