In [106]: dfs = dbf.Dbf('data/org/all_japan_d_a.dbf') In [83]: dfs Out[83]: Dbf stream '<open file 'data/org/all_japan_d_a.dbf', mode 'r+b' at 0x2aca9565dc90>' Version (signature): 0x03 Last update: 2015-08-27 Header length: 513 Record length: 718 Record count: 157915 FieldName Type Len Dec DETAILED_N N 4 0 BASIC_NO N 3 0 COLOR C 13 0 R N 3 0 G N 3 0 B N 3 0 CODE C 19 0 LEGEND_JA C 105 0 LEGEND_EN C 203 0 EXPL_JA C 111 0 AGE_JA C 27 0 AGE_EN C 79 0 LITHO_JA C 47 0 LITHO_EN C 89 0 STYLEIDX N 8 0 In [99]: len(dfs) Out[99]: 157915 In [84]: dfs.fieldNames Out[84]: ['DETAILED_N', 'BASIC_NO', 'COLOR', 'R', 'G', 'B', 'CODE', 'LEGEND_JA', 'LEGEND_EN', 'EXPL_JA', 'AGE_JA', 'AGE_EN', 'LITHO_JA', 'LITHO_EN', 'STYLEIDX'] In [85]: dfs[0] Out[85]: DETAILED_N: 23 (<type 'int'>) BASIC_NO: 171 (<type 'int'>) COLOR: dcff7a (<type 'str'>) R: 220 (<type 'int'>) G: 255 (<type 'int'>) B: 122 (<type 'int'>) CODE: Q3tm (<type 'str'>) LEGEND_JA: ����X�V��(Q3)���ʒi�u�ϕ� (<type 'str'>) LEGEND_EN: Late Pleistocene middle terrace (<type 'str'>) EXPL_JA: �쉈����⍂�����ɕ��z���Ă����15���N�O�`7���N�O�Ɍ`�����ꂽ�i�u�w (<type 'str'>) AGE_JA: ����X�V�� (<type 'str'>) AGE_EN: Late Pleistocene (<type 'str'>) LITHO_JA: ���ʒi�u�ϕ� (<type 'str'>) LITHO_EN: middle terrace (<type 'str'>) STYLEIDX: 2 (<type 'int'>) In [106]: for attr in dfs[0]: ...: if isinstance(attr, int): ...: pass ...: elif isinstance(attr, str): ...: attr = attr.decode('shift-jis') ...: print(attr) ...: 23 171 dcff7a 220 255 122 Q3tm 後期更新世(Q3)の中位段丘堆積物 Late Pleistocene middle terrace 川沿いのやや高い所に分布している約15万年前〜7万年前に形成された段丘層 後期更新世 Late Pleistocene 中位段丘堆積物 middle terrace 2