2018-12-31 16:37:51 -08:00
|
|
|
# ExpenseRatio.py
|
|
|
|
# Andrew Dinh
|
|
|
|
# Python 3.6.1
|
|
|
|
# Description:
|
|
|
|
'''
|
|
|
|
Asks user for expense ratio of stock (I don't think there's an API for expense ratios)
|
|
|
|
Runs corrrelation study (I'm not sure if I want another class for this or not)
|
2019-01-16 08:54:06 -08:00
|
|
|
'''
|
2018-12-31 16:37:51 -08:00
|
|
|
|
|
|
|
import numpy
|
2019-01-08 11:09:46 -08:00
|
|
|
#import urllib2, re
|
|
|
|
from urllib.request import urlopen
|
|
|
|
import re
|
2018-12-31 16:37:51 -08:00
|
|
|
|
2019-01-16 08:54:06 -08:00
|
|
|
class ExpenseRatio:
|
|
|
|
def __init__(self):
|
|
|
|
|
|
|
|
|
2018-12-31 16:37:51 -08:00
|
|
|
def main(): # For testing purposes
|
2019-01-16 08:54:06 -08:00
|
|
|
'''
|
2019-01-08 11:09:46 -08:00
|
|
|
a = [1,2,3]
|
|
|
|
b = [2,4,6]
|
2018-12-31 16:37:51 -08:00
|
|
|
c = numpy.corrcoef(a, b)[0, 1]
|
|
|
|
print(c)
|
2019-01-16 08:54:06 -08:00
|
|
|
'''
|
2018-12-31 16:37:51 -08:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|