0

In pandas we can split 'number' column to multiple columns, such as this example. Is it possible to do in vaex dataframe? In below simple example col_1 is empty!

df = vaex.from_arrays(x = [10000, 100001, 100002, 100003, 100004, 100005, 100006, 100007, 100008, 100009])
df['col'] = df['x'].astype("S")
df['col_1'] = df['col'].str.slice(3,6)
HMadadi
  • 391
  • 5
  • 22

0 Answers0