print ("Hello World")
import pandas as pd
import numpy as np
import seaborn as sns
#Add two numbers
2 + 5
def add_number(a, b):
return a + b
add_number(2, 9)
a = [1, 2, 3, 4]
a
a[2]
a [1:3]
a[-2]
nb = pd.read_csv('listings.csv')
#head will show first 5 records
nb.head()
nb = pd.read_csv('listings.csv')
#tail will show last 10 records
nb.tail(10)
nb['name'].head()
nb.columns
# results for multiple columns
hosts = nb[['name','host_name']]
hosts
nb['min_revenue'] = nb['minimum_nights'] * nb['price']
nb.head()
round(nb['min_revenue'].mean(),2)