Skip to content
Advertisement

checking for computers in another dataframe

I have one data frame that outputs hostname and agent_version this is named df_filter output:

JavaScript

i have another sccm data frame called df_sccm Name

JavaScript

check cs dataframe is in sccm df

JavaScript

i am trying to see if my output of the first dataframe is in my second dataframe (df_sccm), when i run it, it just says false, even though there are some machines thare in there

Advertisement

Answer

I am not sure if you can use .isin() like that. I would probably use a left join like that:

JavaScript

which yields the following data frame:

JavaScript

EDIT

You could try this then:

JavaScript

It relies on the isin() method and returns:

JavaScript

Now, you can get the True rows only by the following line:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement