M
M
MR88082018-10-16 13:58:28
Python
MR8808, 2018-10-16 13:58:28

How to filter a Dataframe based on data in another dataframe?

I have two dataframes. For example: in the first there are three columns: the first is the name of the city, the second is the price of the apartment, the third is the area of ​​the apartment. The second contains only a list of cities. How can I create a new dataframe that will have the data from the first file only for the cities listed in the second file? Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question