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.22k stars 589 forks source link

Can we use dynamic column names for creating dataframes? #2379

Closed DeveloperVivek9 closed 1 year ago

DeveloperVivek9 commented 1 year ago

From the documentation,

x = np.arange(2) y = np.array([10, 20]) z = np.array(['dog', 'cat']) df_numpy = vaex.from_arrays(x=x, y=y, z=z)

What should be done if we only know the column names and number of columns at runtime? Example : we will be having column names in a list =['x','y','k']. How to create a data frame from this? Sorry for the obvious question but couldn't find a solution.