Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas
- realty_df = pandas.read_csv('yandex_realty_data.csv')
- index = 3 # проверим другой объект
- # замените print() конструкцией if-else
- if (realty_df['floor'][index] == 1 and
- realty_df['area'][index] >= 40 and
- realty_df['price'][index] <= 190000 and
- realty_df['commercial_type'][index] in ['FREE_PURPOSE', 'RETAIL'] and
- realty_df['distance'][index] <= 6.7 and
- realty_df['already_taken'][index] == 0 and
- realty_df['competitors'][index] <= 1) in [True or False]:
- print('Объект подходит')
- else:
- print('Объект не подходит')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement