In [ ]:


In [ ]:
print("Hello Drops of Jupyter, hi alan")
print("Bite me Oasis")

In [ ]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

In [ ]:
s = pd.Series([1,3,5,np.nan,6,8])

In [ ]:
s

In [ ]:
import bokeh

In [ ]:
x = [1,2,3,4,5]
y = [6,7,2,4,5]

In [ ]:
y

In [ ]:
from bokeh.plotting import figure, output_file, show

In [ ]:
output_file("lines.html",title='line plt example')
p = figure(title='simple line exampe', x_axis_label='x', y_axis_label='y')
p.line(x,y, legend='Temp.", line_width=2')
show(p)

Parse emails


In [ ]:
friends = set()
print(len(str))
for i in range(len(str)):
    if str[i] == '<':
        i += 1
        while str[i] != '>':
            temp = temp + str[i]
            i += 1
        friends.add(temp)
        temp = ''

for x in friends:
    print(x + ',')

In [ ]:
raffle = [1,14,35,28,49,5,24,16,26,44,12,48,6,43,36,40,38,10,22,31,19,17,32, 29,15]
raffle.sort()
str1 = ','.join(str(e) for e in raffle)
str1

In [ ]:
# looking at pydata meetup data 
df = pd.read_csv('PyData-Triangle_Member_List_on_03-04-18.csv', sep='\t', encoding = 'latin1',error_bad_lines=False)

In [ ]:
df.head()

In [ ]:
df.columns

In [ ]:
df.dtypes

In [ ]:
df["What's your connection to data science with Python?"]

In [ ]:
df2 = pd.read_csv('PyData_Triangle_Q2-2018_Meetup.csv', sep='\t', encoding = 'latin1',error_bad_lines=False)

In [ ]:
df2.dtypes

In [ ]:
df2['What topics would you like to see?'].values

In [ ]: