I have 3 columns in dataframe A,B,C.I want to remove the rows having null in both B and C column
Asked
Active
Viewed 114 times
0
-
A = 1,2,3,4,5 and B = 1,2,null,4,null and C = 1,2,3,4,null Output : A = 1,2,3,4 and B = 1,2,null,4 and C = 1,2,3,4 – Sunil Oct 01 '19 at 10:05
-
Try: `df = df.dropna(subset=['B','C'], how='all')` – Mohit Motwani Oct 01 '19 at 10:11
-
2Possible duplicate of [Python - Drop row if two columns are NaN](https://stackoverflow.com/questions/39128856/python-drop-row-if-two-columns-are-nan) – Mohit Motwani Oct 01 '19 at 10:13