Skip to content
Advertisement

Extract only cells containing a string from pandas table and copy them into a new table

I have a huge pandas table, with many rows and columns. I want to pull all the cells that contain a specific string and create a new table containing only those. Any ideas on how to approach this?

Thank you!

Advertisement

Answer

Do you mean something like this?

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