print("hello world")
import pandas as pd
import numpy as np
import seaborn as sns
# Addition of two numbers
10+10
def add_number(a,b):
return (a+b)
add_number(10,20)
a=[2,4,6,8]
a
a[1]
a[0,2]
a[1]
a[1-]
a[1]
a=[2,4,6,8]
a
a[1]
a[0:3]
a[-1]
# upload file before reading
nb = pd.read_csv("listings.csv.gz")
nb.head()
nb['name'].head()
nb.columns
cols=['name','hostname']
nb[cols]
nb['min_revenue']= nb['minimum_nights'] *nb['price']
nb.head()
round(nb['min_revenue'].mean()),2