Skip to content

au500/python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

<# python>

import csv import numpy as np from sklearn.svm import SVR import matplotlib.pyplot as plt

<# Read stock csv file>

dates = [] prices = [] def get_data(filename): with open(filename, 'r') as csvfile: csvFileReader = csv.reader(csvfile) next(csvFileReader) # skipping column names for row in csvFileReader: dates.append(int(row[0].split('-')[0])) # prices.append(float(row[1])) return

get_data('aapl.csv') # calling get_data method by passing the csv file to it #print "Dates- ", dates #print "Prices- ", prices

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages