I'm trying to remove rows of data that I don't need after importing from files and concatenating my list of dataframes. Here is what my current DataFrame looks like:
Best Movie
0 Movie: Orphan
1 2.
2 Movie: Avatar
3 3.
4 Movie: Inglourious Basterds
... ...
2371 Movie: The Deep End of the Ocean
2372 49.
2373 Movie: Drop Dead Gorgeous
2374 50.
2375 Movie: Go
I need to remove all rows with just the number in them so result looks like this:
Best Movie
0 Movie: Orphan
2 Movie: Avatar
4 Movie: Inglourious Basterds
... ...
2371 Movie: The Deep End of the Ocean
2373 Movie: Drop Dead Gorgeous
2375 Movie: Go
Thank you for your help!
df[~df['Best Movie'].str.endswith('.')]? Try that.