Section 8 unit 19 primer

hello, please clarify this:

Filteration


In [28]:
print (mp.groupby('MarketCap').filter(lambda x: len(x)>= 3))
   Amount Invested        Company  MarketCap       Sector  Share Price
0            24000        Infosys  Large Cap           IT         1120
1            16000          Dabur  Large Cap         FMCG          341
2            50000           DHFL    Mid Cap      Finance          610
3            23000      Divis Lab    Mid Cap       Pharma         1123
4            45000          Lupin    Mid Cap       Pharma          741
6            52000      Britianna    Mid Cap         FMCG         5351
8             5000  Bajaj Finance  Large Cap      Finance         1937
9             3500            DLF    Mid Cap  Real Estate          217

What does this mean?

It will not filter the Groups that has 3 or less than 3 companies in that particular group.

is the bold statement right? please clarify .

thanks

Thanks for pointing out. We wil correct the explanation. 



Correct explanation should be on these lines:



It will filter out the groups that have less than 3 companies in that particular group.

np… thanks