Primi due csv per i grafici delle comparisons + modifiche a indexer.py + creazione comparison_indexer.py per la creazione dei csvdelle comparisons
This commit is contained in:
parent
5b30fceeda
commit
3204c6f40c
4 changed files with 914602 additions and 6 deletions
361
Elaborated_Data/eps_quarterly_bar_chart.csv
Normal file
361
Elaborated_Data/eps_quarterly_bar_chart.csv
Normal file
|
@ -0,0 +1,361 @@
|
||||||
|
,symbol,epsActual,quarter
|
||||||
|
0,XOM,4.14,2022-06-30
|
||||||
|
1,XOM,4.45,2022-09-30
|
||||||
|
2,XOM,3.4,2022-12-31
|
||||||
|
3,XOM,2.83,2023-03-31
|
||||||
|
4,WMT,1.3,2022-04-30
|
||||||
|
5,WMT,1.77,2022-07-31
|
||||||
|
6,WMT,1.5,2022-10-31
|
||||||
|
7,WMT,1.71,2023-01-31
|
||||||
|
8,WFC,0.74,2022-06-30
|
||||||
|
9,WFC,0.85,2022-09-30
|
||||||
|
10,WFC,0.61,2022-12-31
|
||||||
|
11,WFC,1.23,2023-03-31
|
||||||
|
12,VZ,1.31,2022-06-30
|
||||||
|
13,VZ,1.32,2022-09-30
|
||||||
|
14,VZ,1.19,2022-12-31
|
||||||
|
15,VZ,1.2,2023-03-31
|
||||||
|
16,V,1.98,2022-06-30
|
||||||
|
17,V,1.93,2022-09-30
|
||||||
|
18,V,2.18,2022-12-31
|
||||||
|
19,V,2.09,2023-03-31
|
||||||
|
20,USB,1.09,2022-06-30
|
||||||
|
21,USB,1.18,2022-09-30
|
||||||
|
22,USB,1.2,2022-12-31
|
||||||
|
23,USB,1.16,2023-03-31
|
||||||
|
24,UPS,3.29,2022-06-30
|
||||||
|
25,UPS,2.99,2022-09-30
|
||||||
|
26,UPS,3.62,2022-12-31
|
||||||
|
27,UPS,2.2,2023-03-31
|
||||||
|
28,UNP,2.93,2022-06-30
|
||||||
|
29,UNP,3.19,2022-09-30
|
||||||
|
30,UNP,2.67,2022-12-31
|
||||||
|
31,UNP,2.67,2023-03-31
|
||||||
|
32,UNH,5.57,2022-06-30
|
||||||
|
33,UNH,5.79,2022-09-30
|
||||||
|
34,UNH,5.34,2022-12-31
|
||||||
|
35,UNH,6.26,2023-03-31
|
||||||
|
36,TXN,2.45,2022-06-30
|
||||||
|
37,TXN,2.47,2022-09-30
|
||||||
|
38,TXN,2.13,2022-12-31
|
||||||
|
39,TXN,1.85,2023-03-31
|
||||||
|
40,TSLA,0.76,2022-06-30
|
||||||
|
41,TSLA,1.05,2022-09-30
|
||||||
|
42,TSLA,1.19,2022-12-31
|
||||||
|
43,TSLA,0.85,2023-03-31
|
||||||
|
44,TMUS,-0.09,2022-06-30
|
||||||
|
45,TMUS,0.4,2022-09-30
|
||||||
|
46,TMUS,1.18,2022-12-31
|
||||||
|
47,TMUS,1.58,2023-03-31
|
||||||
|
48,TMO,5.51,2022-06-30
|
||||||
|
49,TMO,5.08,2022-09-30
|
||||||
|
50,TMO,5.4,2022-12-31
|
||||||
|
51,TMO,5.03,2023-03-31
|
||||||
|
52,TGT,2.19,2022-04-30
|
||||||
|
53,TGT,0.39,2022-07-31
|
||||||
|
54,TGT,1.54,2022-10-31
|
||||||
|
55,TGT,1.89,2023-01-31
|
||||||
|
56,T,0.65,2022-06-30
|
||||||
|
57,T,0.68,2022-09-30
|
||||||
|
58,T,0.61,2022-12-31
|
||||||
|
59,T,0.6,2023-03-31
|
||||||
|
60,SPGI,2.81,2022-06-30
|
||||||
|
61,SPGI,2.93,2022-09-30
|
||||||
|
62,SPGI,2.54,2022-12-31
|
||||||
|
63,SPGI,3.15,2023-03-31
|
||||||
|
64,SPG,1.51,2022-06-30
|
||||||
|
65,SPG,1.65,2022-09-30
|
||||||
|
66,SPG,2.06,2022-12-31
|
||||||
|
67,SPG,1.38,2023-03-31
|
||||||
|
68,SO,1.07,2022-06-30
|
||||||
|
69,SO,1.31,2022-09-30
|
||||||
|
70,SO,0.26,2022-12-31
|
||||||
|
71,SO,0.79,2023-03-31
|
||||||
|
72,SCHW,0.97,2022-06-30
|
||||||
|
73,SCHW,1.1,2022-09-30
|
||||||
|
74,SCHW,1.09,2022-12-31
|
||||||
|
75,SCHW,0.93,2023-03-31
|
||||||
|
76,PYPL,0.93,2022-06-30
|
||||||
|
77,PYPL,1.08,2022-09-30
|
||||||
|
78,PYPL,1.24,2022-12-31
|
||||||
|
79,PYPL,1.17,2023-03-31
|
||||||
|
80,PM,1.32,2022-06-30
|
||||||
|
81,PM,1.33,2022-09-30
|
||||||
|
82,PM,1.39,2022-12-31
|
||||||
|
83,PM,1.38,2023-03-31
|
||||||
|
84,PG,1.21,2022-06-30
|
||||||
|
85,PG,1.57,2022-09-30
|
||||||
|
86,PG,1.59,2022-12-31
|
||||||
|
87,PG,1.37,2023-03-31
|
||||||
|
88,PFE,2.04,2022-06-30
|
||||||
|
89,PFE,1.78,2022-09-30
|
||||||
|
90,PFE,1.14,2022-12-31
|
||||||
|
91,PFE,1.23,2023-03-31
|
||||||
|
92,PEP,1.86,2022-06-30
|
||||||
|
93,PEP,1.97,2022-09-30
|
||||||
|
94,PEP,1.67,2022-12-31
|
||||||
|
95,PEP,1.5,2023-03-31
|
||||||
|
96,ORCL,1.54,2022-05-31
|
||||||
|
97,ORCL,1.03,2022-08-31
|
||||||
|
98,ORCL,1.21,2022-11-30
|
||||||
|
99,ORCL,1.22,2023-02-28
|
||||||
|
100,NVDA,1.36,2022-04-30
|
||||||
|
101,NVDA,0.51,2022-07-31
|
||||||
|
102,NVDA,0.58,2022-10-31
|
||||||
|
103,NVDA,0.88,2023-01-31
|
||||||
|
104,NSC,3.45,2022-06-30
|
||||||
|
105,NSC,4.1,2022-09-30
|
||||||
|
106,NSC,3.42,2022-12-31
|
||||||
|
107,NSC,3.32,2023-03-31
|
||||||
|
108,NKE,0.9,2022-05-31
|
||||||
|
109,NKE,0.93,2022-08-31
|
||||||
|
110,NKE,0.85,2022-11-30
|
||||||
|
111,NKE,0.79,2023-02-28
|
||||||
|
112,NFLX,3.2,2022-06-30
|
||||||
|
113,NFLX,3.1,2022-09-30
|
||||||
|
114,NFLX,0.12,2022-12-31
|
||||||
|
115,NFLX,2.88,2023-03-31
|
||||||
|
116,NEE,0.81,2022-06-30
|
||||||
|
117,NEE,0.85,2022-09-30
|
||||||
|
118,NEE,0.51,2022-12-31
|
||||||
|
119,NEE,0.84,2023-03-31
|
||||||
|
120,MSFT,2.23,2022-06-30
|
||||||
|
121,MSFT,2.35,2022-09-30
|
||||||
|
122,MSFT,2.32,2022-12-31
|
||||||
|
123,MSFT,2.45,2023-03-31
|
||||||
|
124,MRK,1.87,2022-06-30
|
||||||
|
125,MRK,1.85,2022-09-30
|
||||||
|
126,MRK,1.62,2022-12-31
|
||||||
|
127,MRK,1.4,2023-03-31
|
||||||
|
128,MO,1.26,2022-06-30
|
||||||
|
129,MO,1.28,2022-09-30
|
||||||
|
130,MO,1.18,2022-12-31
|
||||||
|
131,MO,1.18,2023-03-31
|
||||||
|
132,MMM,2.48,2022-06-30
|
||||||
|
133,MMM,2.69,2022-09-30
|
||||||
|
134,MMM,2.28,2022-12-31
|
||||||
|
135,MMM,1.97,2023-03-31
|
||||||
|
136,MMC,1.89,2022-06-30
|
||||||
|
137,MMC,1.18,2022-09-30
|
||||||
|
138,MMC,1.47,2022-12-31
|
||||||
|
139,MMC,2.53,2023-03-31
|
||||||
|
140,MDT,1.52,2022-04-30
|
||||||
|
141,MDT,1.13,2022-07-31
|
||||||
|
142,MDT,1.3,2022-10-31
|
||||||
|
143,MDT,1.3,2023-01-31
|
||||||
|
144,MCO,2.22,2022-06-30
|
||||||
|
145,MCO,1.85,2022-09-30
|
||||||
|
146,MCO,1.6,2022-12-31
|
||||||
|
147,MCO,2.99,2023-03-31
|
||||||
|
148,MCD,2.55,2022-06-30
|
||||||
|
149,MCD,2.68,2022-09-30
|
||||||
|
150,MCD,2.59,2022-12-31
|
||||||
|
151,MCD,2.63,2023-03-31
|
||||||
|
152,MA,2.56,2022-06-30
|
||||||
|
153,MA,2.68,2022-09-30
|
||||||
|
154,MA,2.65,2022-12-31
|
||||||
|
155,MA,2.8,2023-03-31
|
||||||
|
156,LRCX,8.83,2022-06-30
|
||||||
|
157,LRCX,10.42,2022-09-30
|
||||||
|
158,LRCX,10.71,2022-12-31
|
||||||
|
159,LRCX,6.99,2023-03-31
|
||||||
|
160,LOW,3.51,2022-04-30
|
||||||
|
161,LOW,4.67,2022-07-31
|
||||||
|
162,LOW,3.27,2022-10-31
|
||||||
|
163,LOW,2.28,2023-01-31
|
||||||
|
164,LMT,1.16,2022-06-30
|
||||||
|
165,LMT,6.71,2022-09-30
|
||||||
|
166,LMT,7.4,2022-12-31
|
||||||
|
167,LMT,6.61,2023-03-31
|
||||||
|
168,LLY,1.25,2022-06-30
|
||||||
|
169,LLY,1.98,2022-09-30
|
||||||
|
170,LLY,2.09,2022-12-31
|
||||||
|
171,LLY,1.62,2023-03-31
|
||||||
|
172,LIN,3.1,2022-06-30
|
||||||
|
173,LIN,3.1,2022-09-30
|
||||||
|
174,LIN,3.16,2022-12-31
|
||||||
|
175,LIN,3.42,2023-03-31
|
||||||
|
176,KO,0.7,2022-06-30
|
||||||
|
177,KO,0.69,2022-09-30
|
||||||
|
178,KO,0.45,2022-12-31
|
||||||
|
179,KO,0.68,2023-03-31
|
||||||
|
180,JPM,2.76,2022-06-30
|
||||||
|
181,JPM,3.12,2022-09-30
|
||||||
|
182,JPM,3.56,2022-12-31
|
||||||
|
183,JPM,4.1,2023-03-31
|
||||||
|
184,JNJ,2.59,2022-06-30
|
||||||
|
185,JNJ,2.55,2022-09-30
|
||||||
|
186,JNJ,2.35,2022-12-31
|
||||||
|
187,JNJ,2.68,2023-03-31
|
||||||
|
188,ISRG,1.14,2022-06-30
|
||||||
|
189,ISRG,1.19,2022-09-30
|
||||||
|
190,ISRG,1.23,2022-12-31
|
||||||
|
191,ISRG,1.23,2023-03-31
|
||||||
|
192,INTC,0.29,2022-06-30
|
||||||
|
193,INTC,0.59,2022-09-30
|
||||||
|
194,INTC,0.1,2022-12-31
|
||||||
|
195,INTC,-0.04,2023-03-31
|
||||||
|
196,IBM,2.31,2022-06-30
|
||||||
|
197,IBM,1.81,2022-09-30
|
||||||
|
198,IBM,3.6,2022-12-31
|
||||||
|
199,IBM,1.36,2023-03-31
|
||||||
|
200,HON,2.1,2022-06-30
|
||||||
|
201,HON,2.25,2022-09-30
|
||||||
|
202,HON,2.52,2022-12-31
|
||||||
|
203,HON,2.07,2023-03-31
|
||||||
|
204,HD,4.09,2022-04-30
|
||||||
|
205,HD,5.05,2022-07-31
|
||||||
|
206,HD,4.24,2022-10-31
|
||||||
|
207,HD,3.3,2023-01-31
|
||||||
|
208,GS,7.73,2022-06-30
|
||||||
|
209,GS,8.25,2022-09-30
|
||||||
|
210,GS,3.32,2022-12-31
|
||||||
|
211,GS,8.79,2023-03-31
|
||||||
|
212,GOOGL,1.21,2022-06-30
|
||||||
|
213,GOOGL,1.06,2022-09-30
|
||||||
|
214,GOOGL,1.05,2022-12-31
|
||||||
|
215,GOOGL,1.17,2023-03-31
|
||||||
|
216,GILD,1.58,2022-06-30
|
||||||
|
217,GILD,1.9,2022-09-30
|
||||||
|
218,GILD,1.67,2022-12-31
|
||||||
|
219,GILD,1.37,2023-03-31
|
||||||
|
220,GE,0.78,2022-06-30
|
||||||
|
221,GE,0.35,2022-09-30
|
||||||
|
222,GE,1.24,2022-12-31
|
||||||
|
223,GE,0.27,2023-03-31
|
||||||
|
224,FIS,1.73,2022-06-30
|
||||||
|
225,FIS,1.74,2022-09-30
|
||||||
|
226,FIS,1.71,2022-12-31
|
||||||
|
227,FIS,1.29,2023-03-31
|
||||||
|
228,FDX,6.87,2022-05-31
|
||||||
|
229,FDX,3.44,2022-08-31
|
||||||
|
230,FDX,3.18,2022-11-30
|
||||||
|
231,FDX,3.41,2023-02-28
|
||||||
|
232,EXC,0.44,2022-06-30
|
||||||
|
233,EXC,0.75,2022-09-30
|
||||||
|
234,EXC,0.43,2022-12-31
|
||||||
|
235,EXC,0.7,2023-03-31
|
||||||
|
236,DUK,1.14,2022-06-30
|
||||||
|
237,DUK,1.78,2022-09-30
|
||||||
|
238,DUK,1.11,2022-12-31
|
||||||
|
239,DUK,1.2,2023-03-31
|
||||||
|
240,DIS,1.09,2022-06-30
|
||||||
|
241,DIS,0.3,2022-09-30
|
||||||
|
242,DIS,0.99,2022-12-31
|
||||||
|
243,DIS,0.93,2023-03-31
|
||||||
|
244,DHR,2.76,2022-06-30
|
||||||
|
245,DHR,2.56,2022-09-30
|
||||||
|
246,DHR,2.87,2022-12-31
|
||||||
|
247,DHR,2.36,2023-03-31
|
||||||
|
248,DE,6.81,2022-04-30
|
||||||
|
249,DE,6.16,2022-07-31
|
||||||
|
250,DE,7.44,2022-10-31
|
||||||
|
251,DE,6.55,2023-01-31
|
||||||
|
252,D,0.77,2022-06-30
|
||||||
|
253,D,1.11,2022-09-30
|
||||||
|
254,D,1.06,2022-12-31
|
||||||
|
255,D,0.99,2023-03-31
|
||||||
|
256,CVX,5.82,2022-06-30
|
||||||
|
257,CVX,5.56,2022-09-30
|
||||||
|
258,CVX,4.09,2022-12-31
|
||||||
|
259,CVX,3.55,2023-03-31
|
||||||
|
260,CVS,2.4,2022-06-30
|
||||||
|
261,CVS,2.09,2022-09-30
|
||||||
|
262,CVS,1.99,2022-12-31
|
||||||
|
263,CVS,2.2,2023-03-31
|
||||||
|
264,CSX,0.5,2022-06-30
|
||||||
|
265,CSX,0.51,2022-09-30
|
||||||
|
266,CSX,0.47,2022-12-31
|
||||||
|
267,CSX,0.48,2023-03-31
|
||||||
|
268,CSCO,0.87,2022-04-30
|
||||||
|
269,CSCO,0.83,2022-07-31
|
||||||
|
270,CSCO,0.86,2022-10-31
|
||||||
|
271,CSCO,0.88,2023-01-31
|
||||||
|
272,CRM,0.98,2022-04-30
|
||||||
|
273,CRM,1.19,2022-07-31
|
||||||
|
274,CRM,1.4,2022-10-31
|
||||||
|
275,CRM,1.68,2023-01-31
|
||||||
|
276,COST,3.04,2022-05-31
|
||||||
|
277,COST,4.2,2022-08-31
|
||||||
|
278,COST,3.07,2022-11-30
|
||||||
|
279,COST,3.3,2023-02-28
|
||||||
|
280,CME,1.97,2022-06-30
|
||||||
|
281,CME,1.98,2022-09-30
|
||||||
|
282,CME,1.92,2022-12-31
|
||||||
|
283,CME,2.42,2023-03-31
|
||||||
|
284,CMCSA,1.01,2022-06-30
|
||||||
|
285,CMCSA,0.96,2022-09-30
|
||||||
|
286,CMCSA,0.82,2022-12-31
|
||||||
|
287,CMCSA,0.92,2023-03-31
|
||||||
|
288,CHTR,8.8,2022-06-30
|
||||||
|
289,CHTR,7.38,2022-09-30
|
||||||
|
290,CHTR,7.69,2022-12-31
|
||||||
|
291,CHTR,6.65,2023-03-31
|
||||||
|
292,CCI,0.97,2022-06-30
|
||||||
|
293,CCI,0.97,2022-09-30
|
||||||
|
294,CCI,0.95,2022-12-31
|
||||||
|
295,CCI,0.97,2023-03-31
|
||||||
|
296,CAT,3.18,2022-06-30
|
||||||
|
297,CAT,3.95,2022-09-30
|
||||||
|
298,CAT,4.27,2022-12-31
|
||||||
|
299,CAT,4.91,2023-03-31
|
||||||
|
300,BMY,1.93,2022-06-30
|
||||||
|
301,BMY,1.99,2022-09-30
|
||||||
|
302,BMY,1.82,2022-12-31
|
||||||
|
303,BMY,2.05,2023-03-31
|
||||||
|
304,BIDU,1.66,2022-03-31
|
||||||
|
305,BIDU,2.18,2022-06-30
|
||||||
|
306,BIDU,2.49,2022-09-30
|
||||||
|
307,BIDU,2.23,2022-12-31
|
||||||
|
308,BDX,2.66,2022-06-30
|
||||||
|
309,BDX,2.75,2022-09-30
|
||||||
|
310,BDX,2.98,2022-12-31
|
||||||
|
311,BDX,2.86,2023-03-31
|
||||||
|
312,BAC,0.73,2022-06-30
|
||||||
|
313,BAC,0.81,2022-09-30
|
||||||
|
314,BAC,0.85,2022-12-31
|
||||||
|
315,BAC,0.94,2023-03-31
|
||||||
|
316,BA,-0.37,2022-06-30
|
||||||
|
317,BA,-6.18,2022-09-30
|
||||||
|
318,BA,-1.75,2022-12-31
|
||||||
|
319,BA,-1.27,2023-03-31
|
||||||
|
320,AVGO,9.07,2022-04-30
|
||||||
|
321,AVGO,9.73,2022-07-31
|
||||||
|
322,AVGO,10.45,2022-10-31
|
||||||
|
323,AVGO,10.33,2023-01-31
|
||||||
|
324,APD,2.62,2022-06-30
|
||||||
|
325,APD,2.89,2022-09-30
|
||||||
|
326,APD,2.64,2022-12-31
|
||||||
|
327,APD,2.74,2023-03-31
|
||||||
|
328,AMZN,-0.2,2022-06-30
|
||||||
|
329,AMZN,0.28,2022-09-30
|
||||||
|
330,AMZN,0.03,2022-12-31
|
||||||
|
331,AMZN,0.31,2023-03-31
|
||||||
|
332,AMGN,4.65,2022-06-30
|
||||||
|
333,AMGN,4.7,2022-09-30
|
||||||
|
334,AMGN,4.09,2022-12-31
|
||||||
|
335,AMGN,3.98,2023-03-31
|
||||||
|
336,AMAT,1.85,2022-04-30
|
||||||
|
337,AMAT,1.94,2022-07-31
|
||||||
|
338,AMAT,2.03,2022-10-31
|
||||||
|
339,AMAT,2.03,2023-01-31
|
||||||
|
340,ADBE,3.35,2022-05-31
|
||||||
|
341,ADBE,3.4,2022-08-31
|
||||||
|
342,ADBE,3.6,2022-11-30
|
||||||
|
343,ADBE,3.8,2023-02-28
|
||||||
|
344,ACN,2.79,2022-05-31
|
||||||
|
345,ACN,2.6,2022-08-31
|
||||||
|
346,ACN,3.08,2022-11-30
|
||||||
|
347,ACN,2.69,2023-02-28
|
||||||
|
348,ABT,1.43,2022-06-30
|
||||||
|
349,ABT,1.15,2022-09-30
|
||||||
|
350,ABT,1.03,2022-12-31
|
||||||
|
351,ABT,1.03,2023-03-31
|
||||||
|
352,ABBV,3.37,2022-06-30
|
||||||
|
353,ABBV,3.66,2022-09-30
|
||||||
|
354,ABBV,3.6,2022-12-31
|
||||||
|
355,ABBV,2.46,2023-03-31
|
||||||
|
356,AAPL,1.2,2022-06-30
|
||||||
|
357,AAPL,1.29,2022-09-30
|
||||||
|
358,AAPL,1.88,2022-12-31
|
||||||
|
359,AAPL,1.52,2023-03-31
|
|
914196
Elaborated_Data/price_history_data.csv
Normal file
914196
Elaborated_Data/price_history_data.csv
Normal file
File diff suppressed because it is too large
Load diff
42
indexer/comparison_indexer.py
Normal file
42
indexer/comparison_indexer.py
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
import sys
|
||||||
|
sys.path.append('../group-1')
|
||||||
|
import pandas as pd
|
||||||
|
from scraper.top100_extractor import programming_crime_list
|
||||||
|
|
||||||
|
def stock_price_time_series(ticker: str):
|
||||||
|
# Read market price csv
|
||||||
|
market_prices = pd.read_csv(f'Companies_Data/{ticker}_Data/{ticker}_price_history.csv')
|
||||||
|
|
||||||
|
return market_prices
|
||||||
|
|
||||||
|
def eps_bar_chart(ticker: str):
|
||||||
|
# Read earnings csv
|
||||||
|
earnings = pd.read_csv(f'Companies_Data/{ticker}_Data/{ticker}earnings.csv')
|
||||||
|
|
||||||
|
earnings = earnings[['symbol', 'epsActual', 'quarter']]
|
||||||
|
|
||||||
|
return earnings
|
||||||
|
|
||||||
|
def concatenate_price_history():
|
||||||
|
# Declare empty dataframe
|
||||||
|
unified_price_history = pd.DataFrame()
|
||||||
|
|
||||||
|
for ticker in programming_crime_list:
|
||||||
|
prices = stock_price_time_series(ticker)
|
||||||
|
unified_price_history = pd.concat([prices, unified_price_history], ignore_index=True, axis=0)
|
||||||
|
|
||||||
|
unified_price_history.to_csv('Elaborated_Data/price_history_data.csv')
|
||||||
|
|
||||||
|
def concatenate_eps():
|
||||||
|
# Declare empty dataframe
|
||||||
|
eps_df = pd.DataFrame()
|
||||||
|
|
||||||
|
for ticker in programming_crime_list:
|
||||||
|
eps = eps_bar_chart(ticker)
|
||||||
|
eps_df = pd.concat([eps, eps_df], ignore_index=True, axis=0)
|
||||||
|
|
||||||
|
eps_df.to_csv('Elaborated_Data/eps_quarterly_bar_chart.csv')
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
concatenate_price_history()
|
||||||
|
concatenate_eps()
|
|
@ -1,5 +1,5 @@
|
||||||
import sys
|
import sys
|
||||||
sys.path.append('../VISUAL-AN-PROJECT')
|
sys.path.append('../group-1')
|
||||||
import math
|
import math
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
import os
|
import os
|
||||||
|
@ -131,16 +131,13 @@ def create_df(companies_list):
|
||||||
df.to_csv("Elaborated_Data/Not_Normalized.csv")
|
df.to_csv("Elaborated_Data/Not_Normalized.csv")
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
# Check directory
|
||||||
if not os.path.exists(r"Elaborated_Data"):
|
if not os.path.exists(r"Elaborated_Data"):
|
||||||
os.mkdir(r"Elaborated_Data")
|
os.mkdir(r"Elaborated_Data")
|
||||||
|
|
||||||
|
# Create the df and then normalize it
|
||||||
create_df(programming_crime_list)
|
create_df(programming_crime_list)
|
||||||
normalizer()
|
normalizer()
|
||||||
# print(get_peg('GOOGL')) # < 1 ( GREEN); > 1 (RED); = 1 (ORANGE)
|
|
||||||
# print(get_financial_health('GOOGL')) # < 1 (GREEN); > 1 (RED); = 1 (ORANGE)
|
|
||||||
# print(estimated_growth('GOOGL')) # < 0 (RED); 0 < x < 8% (ORANGE); < 8 % (GREEN)
|
|
||||||
# print(past_performance_earnings('GOOGL'), "%") # -100 < x < 0 (RED); = 0 (ORANGE); 0 < x < 100 (GREEN)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Reference in a new issue