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:
Pietro Rodolfo Masera 2023-05-17 13:42:56 +02:00
parent 5b30fceeda
commit 3204c6f40c
4 changed files with 914602 additions and 6 deletions

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

File diff suppressed because it is too large Load diff

View 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()

View file

@ -1,5 +1,5 @@
import sys
sys.path.append('../VISUAL-AN-PROJECT')
sys.path.append('../group-1')
import math
import pandas as pd
import os
@ -131,16 +131,13 @@ def create_df(companies_list):
df.to_csv("Elaborated_Data/Not_Normalized.csv")
def main():
# Check directory
if not os.path.exists(r"Elaborated_Data"):
os.mkdir(r"Elaborated_Data")
# Create the df and then normalize it
create_df(programming_crime_list)
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__':
main()