Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- df = pd.DataFrame({
- 'From': ['Moscow', 'Moscow', 'St. Petersburg', 'St. Petersburg', 'St. Petersburg'],
- 'To': ['Rome', 'Rome', 'Rome', 'Barcelona', 'Barcelona'],
- 'Is_Direct': [False, True, False, False, True],
- 'Has_luggage': [True, False, False, True, False],
- 'Price': [21032, 19250, 19301, 20168, 31425],
- 'Date_From': ['01.07.19', '01.07.19', '04.07.2019', '03.07.2019', '05.07.2019'],
- 'Date_To': ['07.07.19', '07.07.19', '10.07.2019', '09.07.2019', '11.07.2019'],
- 'Airline': ['Belavia', 'S7', 'Finnair', 'Swiss', 'Rossiya'],
- 'Travel_time_from': [995, 230, 605, 365, 255],
- 'Travel_time_to': [350, 225, 720, 355, 250],
- })
- # впишите нужное условие
- print(df[df['Price'] * 1,5 < df[df['Price'].max())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement