I have a pandas DataFrame with rows of data::
# objectID grade OS method
object_id_0001 AAA Mac organic
object_id_0001 AAA Mac NA
object_id_0001 AAA NA organic
object_id_0002 NA NA NA
object_id_0002 ABC Win NA
i.e. there are often multiple entries for the same objectID but sometimes/often the entries have NAs.
As such, I'm just looking for a way that would combine on ObjectID, and report the non-NA entries e.g. the above collapses down to::
object_id_0001 AAA Mac organic
object_id_0002 ABC Win NA
dropna()
with thesubset
arg? pandas.pydata.org/pandas-docs/stable/generated/… – Darmstadt