print("HELLO WORLD")# Start writing code here...
import pandas as pd
import numpy as np
import seaborn as sns
# add two numbers
2 + 15
def add_number(a,b):
return a + b
add_number(10, 45)
a = [5, 6, 3, 7, 9, 12, 45]
a
a[4]
a[1:3]
a[-1]
nb = pd.read_csv("listings.csv")
nb.head()
nb = pd.read_csv("listings.csv")
nb.tail(10)
nb['name'].head()
nb.columns
nb[['name', 'host_name']]
colns = ['name', 'host_name']
nb[colns]
nb['min_revenue'] = nb['minimum_nights'] * nb['price']
nb.head()
round(nb['min_revenue'].mean(),2)