Home > other >  According to the parts of the column value field groupy by grouping simple method?
According to the parts of the column value field groupy by grouping simple method?

Time:12-10

Of the dataframe for example: I have 1 column is the license plate number, I think, in accordance with the initials "Beijing", "Shanghai", "yue" grouped calculated the number of cars, what method is simple?
Don't tell me the for loop

CodePudding user response:

Provide data sample

CodePudding user response:

Can be solved using the filter function,
The filter (the function or None, iterable)

  • Related