You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@arrow.apache.org by maqy <45...@qq.com> on 2020/05/11 05:18:20 UTC

pyarrow.Table.to_pandas() raise ValueError: Found non-unique column index

 I use pyarrow to receive the arrow data sent from java, the data type is int(two columns). The python code I use is:
```
 client, addr = socket_server.accept()
 my_file = client.makefile(“rb”)
 
 reader = pa.RecordBatchStreamReader(my_file)
 talbe = reader.read_all()
 # raise ValueError
 df = table.to_pandas()  
```
    The reason for this problem is that the columns names of the table are ['int', 'int']. How should I solve this problem?

Best regards,
maqy