@@ -58,19 +58,19 @@ def read_pandas(self, columns=None, use_threads=True):
5858 use_threads = use_threads )
5959
6060
61- def check_chunked_overflow (col ):
61+ def check_chunked_overflow (name , col ):
6262 if col .num_chunks == 1 :
6363 return
6464
6565 if col .type in (ext .binary (), ext .string ()):
6666 raise ValueError ("Column '{0}' exceeds 2GB maximum capacity of "
6767 "a Feather binary column. This restriction may be "
68- "lifted in the future" .format (col . name ))
68+ "lifted in the future" .format (name ))
6969 else :
7070 # TODO(wesm): Not sure when else this might be reached
7171 raise ValueError ("Column '{0}' of type {1} was chunked on conversion "
7272 "to Arrow and cannot be currently written to "
73- "Feather format" .format (col . name , str (col .type )))
73+ "Feather format" .format (name , str (col .type )))
7474
7575
7676class FeatherWriter (object ):
@@ -93,7 +93,7 @@ def write(self, df):
9393 table = Table .from_pandas (df , preserve_index = False )
9494 for i , name in enumerate (table .schema .names ):
9595 col = table [i ]
96- check_chunked_overflow (col )
96+ check_chunked_overflow (name , col )
9797 self .writer .write_array (name , col .chunk (0 ))
9898
9999 self .writer .close ()
0 commit comments