Skip to content
Advertisement

Tag: dataframe

Problems with DataFrame indexing with pandas

Using pandas, I have to modify a DataFrame so that it only has the indexes that are also present in a vector, which was acquired by performing operations in one of the df’s columns. Here’s the specific line of code used for that (please do not mind me picking the name ‘dataset’ instead of ‘dataframe’ or ‘df’): it worked, and

Advertisement