Please refer to the sample below.
import pandas as pd
df = pd.DataFrame(data={'alphabet':['a', 'a', 'a', 'b', 'b', 'c'], 'NNN':range(6), 'MMM':range(6)})
df.groupby('alphabet').filter(lambda x: x['alphabet'].count() > 1)
alphabet NNN MMM
0 a 0 0
1 a 1 1
2 a 2 2
3 b 3 3
4 b 4 4
771 GDB gets version error when attempting to debug with the Presense SDK (IDE)
758 Error in x, y, and format string must not be None
776 M2 Mac fails to install rbenv install 3.1.3 due to errors
856 Uncaught (inpromise) Error on Electron: An object could not be cloned
1235 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2025 OneMinuteCode. All rights reserved.