vaexio / vaex

Out-of-Core hybrid Apache Arrow/NumPy DataFrame for Python, ML, visualization and exploration of big tabular data at a billion rows per second 🚀
https://vaex.io
MIT License
8.28k stars 590 forks source link

[BUG-REPORT] cannot request duplicate column names before export to arrow or parquet #2200

Open Ben-Epstein opened 2 years ago

Ben-Epstein commented 2 years ago

Thank you for reaching out and helping us improve Vaex!

Before you submit a new Issue, please read through the documentation. Also, make sure you search through the Open and Closed Issues - your problem may already be discussed or addressed.

Description Please provide a clear and concise description of the problem. This should contain all the steps needed to reproduce the problem. A minimal code example that exposes the problem is very appreciated.

Software information

Additional information

import vaex

df = vaex.example()

cols =  ["x","x","y","z","y"]
df = df[cols]
df.export("file.arrow")  # fails
df.export("file.parquet")  # fails
df.export("file.csv")  # works
import vaex

df = vaex.example()

cols =  ["x","x","y","z","y"]
df = df[list(set(cols))]
df.export("file.arrow")  # works
df.export("file.parquet")  # works