2018-12-01 map()の使い方② >>> x = pd.Series([1,2,3], index=['one', 'two', 'three']) >>> x one 1 two 2 three 3 dtype: int64 >>> z = {1: 'A', 2: 'B', 3: 'C'} >>> x.map(z) one A two B three C 公式ドキュメントから map()で引数に辞書型をとると、そのキーの紐づく値に変わる。