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

Conversion of virtual column to a real column #2050

Closed ashsharma96 closed 2 years ago

ashsharma96 commented 2 years ago

Hey @JovanVeljanoski, I want to know one thing that how to convert a virtual column to a actual column. For example I'll share one dataframe information below: image the last column store_recency is a virtual column with some expressions on it. I want to be store_recency column as int64 with no expressions on it. For example image I've tried extract function but that doesn't help me. Have you any idea how can I do this? In detail, my dataframe name is df_rec which has 3 columns mentioned in above pictures.

JovanVeljanoski commented 2 years ago

Use df.materialize(...)

ashsharma96 commented 2 years ago

@JovanVeljanoski Thank you so much. Its working. I'll close this one.