This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| #### Read the data | |
| melb = pd.read_csv('melb_data.csv') | |
| ### Task 1: Find the address, price, and date of the houses in Albion. | |
| # Then, sort the results by price in ascending order and by date in descending order. | |
| melb[['Suburb', 'Address', 'Price', 'Date']].query('Suburb == "Albion"').sort_values(by = ['Price', 'Date'], ascending = [True, False]) | |
| ## Task 2: Change the name of the following columns as indicated: |