I have below datasets
host infra domain user entity bios ip
abcd.com Lake Hov bat sos nvm x.x.x.x
kpm.com Lake Hov bat sos nvm x.x.x.x
ffger.com Data JOV sat sim nvm x.x.x.x
ffger.com Data TOV sat sim nvm NAN
kko.com Lake POV et som nvm NAN
spm.com Lake Hov bat sos nvm NAN
I want to group by infra and with domain include all NAN
so one df would be if df.group_by(infra,domain) like below
abcd.com Lake Hov bat sos nvm x.x.x.x
kpm.com Lake Hov bat sos nvm x.x.x.x
spm.com Lake Hov bat sos nvm NAN