I created DataFrame1 using Pandas.
books_input = {"author_id" : [1, 1, 1, 2, 2, 3, 3],
"book_title" : ['Отцы и дети', 'Рудин', 'Дворянское гнездо', 'Толстый и тонкий', 'Дама с собачкой', 'Гроза', 'Таланты и поклонники'],
"price" : [450, 300, 350, 500, 450, 370, 290]}
DataFrame1 = pd.DataFrame(books_input)
I need to create new DataFrame called top5 and I need to take 5 highest values from "price" column from DataFrame1(need to show the most expensive books).
How I can do it? Using merging? If yes, then how I can show merge this column with specific restrictions(only 5 values)?