-
Notifications
You must be signed in to change notification settings - Fork 21
/
stocks_code.py
49 lines (29 loc) · 1007 Bytes
/
stocks_code.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# -*- coding: utf-8 -*-
"""Stocks_code.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1x896lhi9KwX9JZwLTP5mXGbhjtWHKIjT
"""
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
"""**Data Preprocessing**
"""
#loading the Data
dataset_train = pd.read_csv('Google_Stock_Price_Train.csv')
print('shape is = {}'.format(dataset_train.shape))
print(dataset_train.head())
training_set = dataset_train.iloc[:,1:2].values
print('shape is ={}'.format(training_set.shape))
print(training_set[0:5])
#Visualizing the Data
plt.plot(training_set, color = 'red', label = 'Google Stock Price in Test set')
plt.xlabel('Time')
plt.ylabel('Google Stock Price')
plt.legend()
plt.show()
"""Hi WAIT WAIT !
Project code is more longer with detailed description.
If you want Project Code, synopsis and Report then Please mail me at [email protected]
## Mail me at [email protected] for the Project files now.
"""