We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this:
sorted_counts = text.filter(lambda word: word not in DELIMITERS).str.lower().str.strip().str.split().flatten().frequencies().topk(10,key=1).compute()
is not the same thing as the filter function
filter
The text was updated successfully, but these errors were encountered:
This was modified in python-perf
python-perf
https://enccs.github.io/python-perf/parallelize/#dask-bag
text = db.read_text(filename, blocksize='1MiB') filtered = ( text .filter(lambda word: word not in DELIMITERS) .str.lower() .str.strip() .str.split() .flatten() ) ddf = filtered.to_dataframe(columns=['words']) ddf['words'].value_counts().compute()[:10]
I need to update it here.
Sorry, something went wrong.
I remember now and understand what you meant. We need to use str.replace with regex or some kind of map + filter.
str.replace
map
ashwinvis
No branches or pull requests
this:
is not the same thing as the
filter
functionThe text was updated successfully, but these errors were encountered: