I have a code segment
data_preprocess_segment_5 = df.apply(lambda x: ' '.join(segment(x)))
which takes a lot of time maybe more than 24hrs to process.
I was thinking to do
df[0:1000].apply(lambda x: ' '.join(segment(x)))
df[1000:2000].apply(lambda x: ' '.join(segment(x)))...
Sign up now and enjoy the perks of being a community member. It's free.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.