ChicagoCrimes icon indicating copy to clipboard operation
ChicagoCrimes copied to clipboard

Problems about cannot deleteing row due to the new Dask version

Open bghjmn32 opened this issue 5 years ago • 0 comments

Hello,

This is my first time using Github Issues and I am a beginniner, so sorry for my bad formate.

Thanks for your code. I am using it to do some analysis for 2020 Chicago data , so I am using the new version Libraies.

For the crime-polt notebook, I found a problem that

RCTNSU~@5O)_)$QHK{95M

It is supposed to filter all the rows with their PrimaryType doesn't belong to any of above 5 kinds.

For the next section, I change your pd.TimeGrouper('M') to pd.grouper(freq='M') as the previous one is no longer support in the current Libray.(I only changed this place)

image

But here comes the problem, it seems the row selection doesn't work in the end. You can see those PrimaryType which are supposed to be delete from the df still exist and got count.

JNB5@KP0~ 93~9(HE {S$1S

And they make the graph plot a mess.

TC(@~NG~2@S$TQW)BNK{9{R

If this don't bother you ,can you kindly give some advice on how to delete them? Because I only did one change on your code, and the whole result become a mess, which is very sad.

best regrads

bghjmn32 avatar Oct 16 '20 01:10 bghjmn32