I have a CSV file with 60 different server names, but how do I save all the server names to a list and make a loop that checks if every servername is in the list? Lets say tommorow I compare with a similar CSV file, but it only contains 50 server names. I want it to spit out the servers missing in a print operation how can I do that?
Here is my current code - It reads the CSV file and prints all the server names with an index from 0-59.
csv_file = 'C:\Users\admin\Desktop\csvfolder/some_file.csv'
df = pd.read_csv(csv_file, delimiter=';', skiprows=0, low_memory=False)
print(df)