Horje
drop values in column with single frequency Code Example
drop values in column with single frequency
counts_col2 = df.groupby("Col2")["Col2"].transform(len)
counts_col3 = df.groupby("Col3")["Col3"].transform(len)

mask = (counts_col2 > 5) & (counts_col3 > 5)

df[mask]




Python

Related
genshin impact checker python Code Example genshin impact checker python Code Example
how to upload to PyPi with same name Code Example how to upload to PyPi with same name Code Example
ban all discord python script Code Example ban all discord python script Code Example
python append many items to a list Code Example python append many items to a list Code Example
python wait for executable to finish before perceeding Code Example python wait for executable to finish before perceeding Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8