Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • the thing is that new ones will constantly be added to test2 so i cant make a hard coded data frame. Commented Feb 5, 2020 at 15:50
  • 1
    yes, replace the pd.DataFrame calls with pd.read_csv. I just created the dummy data so that the code runs. Commented Feb 5, 2020 at 15:51
  • this works fine if the added values are added at the end of the column. Is there any way to detect the added value even if its randomly in the column somewhere? Commented Feb 5, 2020 at 16:06
  • in that case you should probably use a set() method Commented Feb 5, 2020 at 16:07
  • can you provide me an example of this? Sorry for the hassle I am new to this and want to get a better understanding of it all Commented Feb 5, 2020 at 16:10