Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import pickle
- import sys
- import matplotlib.pyplot
- sys.path.append("../tools/")
- from feature_format import featureFormat, targetFeatureSplit
- ### read in data dictionary, convert to numpy array
- data_dict = pickle.load( open("../final_project/final_project_dataset.pkl", "r") )
- features = ["salary", "bonus"]
- data = featureFormat(data_dict, features)
- ### your code below
- print data.max()
- for point in data:
- salary = point[0]
- bonus = point[1]
- matplotlib.pyplot.scatter( salary, bonus )
- matplotlib.pyplot.xlabel("salary")
- matplotlib.pyplot.ylabel("bonus")
- matplotlib.pyplot.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement