How to select the rows when the particular column has specific number of fields with delimiter
How to select the rows when the particular column has specific number of fields with delimiter Question: i have the below dataframe import pandas as pd import numpy as np d = {‘Cell’:[‘cell_D1_TY_L_90′,’cell4_D2_TY_L_90′,’cell6_TY_L_90′,’cell2_D4_TY_L_90′,’cell1_L_90′],’D1’:[5, 2, 2, 6,6], ‘D2’:[np.nan, 5, 6, np.nan,3], ‘D3’:[7,np.nan, 5, 5,np.nan], ‘D6′:[17, 3, np.nan,np.nan,2],’diff%’:[np.nan,[‘D2’],[‘D2′,’D3’],[‘D1′,’D3’],[‘D1′,’D2′,’D6’]]} df = pd.DataFrame(d) Cell D1 D2 D3 D6 diff% …