noshot 0.3.9__py3-none-any.whl → 0.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- noshot/data/ML TS XAI/TS/10. Seasonal ARIMA Forecasting.ipynb +928 -0
- noshot/data/ML TS XAI/TS/11. Multivariate ARIMA Forecasting.ipynb +1270 -0
- noshot/data/ML TS XAI/TS/6. ACF PACF.ipynb +175 -0
- noshot/data/ML TS XAI/TS/7. Differencing.ipynb +303 -0
- noshot/data/ML TS XAI/TS/8. ARMA Forecasting.ipynb +746 -0
- noshot/data/ML TS XAI/TS/9. ARIMA Forecasting.ipynb +579 -0
- noshot/main.py +18 -18
- noshot/utils/__init__.py +2 -2
- noshot/utils/shell_utils.py +56 -56
- {noshot-0.3.9.dist-info → noshot-0.4.1.dist-info}/METADATA +58 -55
- noshot-0.4.1.dist-info/RECORD +15 -0
- {noshot-0.3.9.dist-info → noshot-0.4.1.dist-info}/WHEEL +1 -1
- {noshot-0.3.9.dist-info → noshot-0.4.1.dist-info/licenses}/LICENSE.txt +20 -20
- noshot/data/ML TS XAI/ML/1. PCA - EDA.ipynb +0 -207
- noshot/data/ML TS XAI/ML/2. KNN Classifier.ipynb +0 -287
- noshot/data/ML TS XAI/ML/3. Linear Discriminant Analysis.ipynb +0 -83
- noshot/data/ML TS XAI/ML/4. Linear Regression.ipynb +0 -117
- noshot/data/ML TS XAI/ML/5. Logistic Regression.ipynb +0 -151
- noshot/data/ML TS XAI/ML/6. Bayesian Classifier.ipynb +0 -89
- noshot/data/ML TS XAI/ML/data/balance-scale.csv +0 -626
- noshot/data/ML TS XAI/ML/data/balance-scale.txt +0 -625
- noshot/data/ML TS XAI/ML/data/machine-data.csv +0 -210
- noshot/data/ML TS XAI/ML/data/wine-dataset.csv +0 -179
- noshot/data/ML TS XAI/ML Additional/Bank.ipynb +0 -74
- noshot/data/ML TS XAI/ML Additional/LR.ipynb +0 -69
- noshot/data/ML TS XAI/ML Additional/ObesityDataSet_raw_and_data_sinthetic.csv +0 -2112
- noshot/data/ML TS XAI/ML Additional/Q4 LR.csv +0 -206
- noshot/data/ML TS XAI/ML Additional/Q7 BANK DETAILS.csv +0 -41189
- noshot/data/ML TS XAI/ML Additional/airfoil.ipynb +0 -69
- noshot/data/ML TS XAI/ML Additional/airfoil_self_noise.dat +0 -1503
- noshot/data/ML TS XAI/ML Additional/obesity.ipynb +0 -78
- noshot/data/ML TS XAI/ML Additional/voronoicode.ipynb +0 -81
- noshot/data/ML TS XAI/ML Lab CIA/1/1.ipynb +0 -133
- noshot/data/ML TS XAI/ML Lab CIA/1/Question.txt +0 -12
- noshot/data/ML TS XAI/ML Lab CIA/1/airfoil_self_noise.dat +0 -1503
- noshot/data/ML TS XAI/ML Lab CIA/2/2.ipynb +0 -139
- noshot/data/ML TS XAI/ML Lab CIA/2/Question.txt +0 -12
- noshot/data/ML TS XAI/ML Lab CIA/2/pop_failures.dat +0 -143
- noshot/data/ML TS XAI/ML Lab CIA/3/3.ipynb +0 -130
- noshot/data/ML TS XAI/ML Lab CIA/3/Qu.txt +0 -1
- noshot/data/ML TS XAI/ML Lab CIA/3/go_track_tracks.csv +0 -164
- noshot/data/ML TS XAI/ML Lab CIA/4/4.ipynb +0 -141
- noshot/data/ML TS XAI/ML Lab CIA/4/Wilt.csv +0 -4340
- noshot/data/ML TS XAI/ML Lab CIA/4/qu.txt +0 -1
- noshot/data/ML TS XAI/TS/1. EDA - Handling Time Series Data.ipynb +0 -247
- noshot/data/ML TS XAI/TS/2. Feature Engineering.ipynb +0 -183
- noshot/data/ML TS XAI/TS/3. Temporal Relationships.ipynb +0 -172
- noshot/data/ML TS XAI/TS/4. Up-Down-Sampling and Interpolation.ipynb +0 -146
- noshot/data/ML TS XAI/TS/5. Stationarity - Trend - Seasonality.ipynb +0 -173
- noshot/data/ML TS XAI/TS/6. Autocorrelation - Partial Autocorrelation.ipynb +0 -77
- noshot/data/ML TS XAI/TS/AllinOne.ipynb +0 -1416
- noshot/data/ML TS XAI/TS/data/daily-min-temperatures.csv +0 -3651
- noshot/data/ML TS XAI/TS/data/daily-total-female-births.csv +0 -366
- noshot/data/ML TS XAI/TS/data/raw_sales.csv +0 -29581
- noshot/data/ML TS XAI/TS/data/shampoo_sales.csv +0 -37
- noshot/data/ML TS XAI/TS Lab CIA/1 - AirPassengers/1 - AirPassengers.ipynb +0 -198
- noshot/data/ML TS XAI/TS Lab CIA/1 - AirPassengers/AirPassengers.csv +0 -145
- noshot/data/ML TS XAI/TS Lab CIA/2 - Daily-total-female-births/2 - daily-total-female-births.ipynb +0 -209
- noshot/data/ML TS XAI/TS Lab CIA/2 - Daily-total-female-births/daily-total-female-births.csv +0 -366
- noshot/data/ML TS XAI/TS Lab CIA/3 - Bill Charge/3 - Bill Charge.ipynb +0 -169
- noshot/data/ML TS XAI/TS Lab CIA/3 - Bill Charge/bill charge.csv +0 -21
- noshot/data/ML TS XAI/TS Lab CIA/4 - Daily min temperatures/4 - daily-min-temperatures.ipynb +0 -181
- noshot/data/ML TS XAI/TS Lab CIA/4 - Daily min temperatures/daily-min-temperatures.csv +0 -3651
- noshot/data/ML TS XAI/TS Lab CIA/5 - shampoo sales/5 - Shampoo sales.ipynb +0 -213
- noshot/data/ML TS XAI/TS Lab CIA/5 - shampoo sales/shampoo_sales.csv +0 -37
- noshot/data/ML TS XAI/TS Lab CIA/Questions TMS 27 Feb 25.pdf +0 -0
- noshot-0.3.9.dist-info/RECORD +0 -62
- {noshot-0.3.9.dist-info → noshot-0.4.1.dist-info}/top_level.txt +0 -0
noshot/data/ML TS XAI/TS Lab CIA/2 - Daily-total-female-births/daily-total-female-births.csv
DELETED
@@ -1,366 +0,0 @@
|
|
1
|
-
"Date","Births"
|
2
|
-
"1959-01-01",35
|
3
|
-
"1959-01-02",32
|
4
|
-
"1959-01-03",30
|
5
|
-
"1959-01-04",31
|
6
|
-
"1959-01-05",44
|
7
|
-
"1959-01-06",29
|
8
|
-
"1959-01-07",45
|
9
|
-
"1959-01-08",43
|
10
|
-
"1959-01-09",38
|
11
|
-
"1959-01-10",27
|
12
|
-
"1959-01-11",38
|
13
|
-
"1959-01-12",33
|
14
|
-
"1959-01-13",55
|
15
|
-
"1959-01-14",47
|
16
|
-
"1959-01-15",45
|
17
|
-
"1959-01-16",37
|
18
|
-
"1959-01-17",50
|
19
|
-
"1959-01-18",43
|
20
|
-
"1959-01-19",41
|
21
|
-
"1959-01-20",52
|
22
|
-
"1959-01-21",34
|
23
|
-
"1959-01-22",53
|
24
|
-
"1959-01-23",39
|
25
|
-
"1959-01-24",32
|
26
|
-
"1959-01-25",37
|
27
|
-
"1959-01-26",43
|
28
|
-
"1959-01-27",39
|
29
|
-
"1959-01-28",35
|
30
|
-
"1959-01-29",44
|
31
|
-
"1959-01-30",38
|
32
|
-
"1959-01-31",24
|
33
|
-
"1959-02-01",23
|
34
|
-
"1959-02-02",31
|
35
|
-
"1959-02-03",44
|
36
|
-
"1959-02-04",38
|
37
|
-
"1959-02-05",50
|
38
|
-
"1959-02-06",38
|
39
|
-
"1959-02-07",51
|
40
|
-
"1959-02-08",31
|
41
|
-
"1959-02-09",31
|
42
|
-
"1959-02-10",51
|
43
|
-
"1959-02-11",36
|
44
|
-
"1959-02-12",45
|
45
|
-
"1959-02-13",51
|
46
|
-
"1959-02-14",34
|
47
|
-
"1959-02-15",52
|
48
|
-
"1959-02-16",47
|
49
|
-
"1959-02-17",45
|
50
|
-
"1959-02-18",46
|
51
|
-
"1959-02-19",39
|
52
|
-
"1959-02-20",48
|
53
|
-
"1959-02-21",37
|
54
|
-
"1959-02-22",35
|
55
|
-
"1959-02-23",52
|
56
|
-
"1959-02-24",42
|
57
|
-
"1959-02-25",45
|
58
|
-
"1959-02-26",39
|
59
|
-
"1959-02-27",37
|
60
|
-
"1959-02-28",30
|
61
|
-
"1959-03-01",35
|
62
|
-
"1959-03-02",28
|
63
|
-
"1959-03-03",45
|
64
|
-
"1959-03-04",34
|
65
|
-
"1959-03-05",36
|
66
|
-
"1959-03-06",50
|
67
|
-
"1959-03-07",44
|
68
|
-
"1959-03-08",39
|
69
|
-
"1959-03-09",32
|
70
|
-
"1959-03-10",39
|
71
|
-
"1959-03-11",45
|
72
|
-
"1959-03-12",43
|
73
|
-
"1959-03-13",39
|
74
|
-
"1959-03-14",31
|
75
|
-
"1959-03-15",27
|
76
|
-
"1959-03-16",30
|
77
|
-
"1959-03-17",42
|
78
|
-
"1959-03-18",46
|
79
|
-
"1959-03-19",41
|
80
|
-
"1959-03-20",36
|
81
|
-
"1959-03-21",45
|
82
|
-
"1959-03-22",46
|
83
|
-
"1959-03-23",43
|
84
|
-
"1959-03-24",38
|
85
|
-
"1959-03-25",34
|
86
|
-
"1959-03-26",35
|
87
|
-
"1959-03-27",56
|
88
|
-
"1959-03-28",36
|
89
|
-
"1959-03-29",32
|
90
|
-
"1959-03-30",50
|
91
|
-
"1959-03-31",41
|
92
|
-
"1959-04-01",39
|
93
|
-
"1959-04-02",41
|
94
|
-
"1959-04-03",47
|
95
|
-
"1959-04-04",34
|
96
|
-
"1959-04-05",36
|
97
|
-
"1959-04-06",33
|
98
|
-
"1959-04-07",35
|
99
|
-
"1959-04-08",38
|
100
|
-
"1959-04-09",38
|
101
|
-
"1959-04-10",34
|
102
|
-
"1959-04-11",53
|
103
|
-
"1959-04-12",34
|
104
|
-
"1959-04-13",34
|
105
|
-
"1959-04-14",38
|
106
|
-
"1959-04-15",35
|
107
|
-
"1959-04-16",32
|
108
|
-
"1959-04-17",42
|
109
|
-
"1959-04-18",34
|
110
|
-
"1959-04-19",46
|
111
|
-
"1959-04-20",30
|
112
|
-
"1959-04-21",46
|
113
|
-
"1959-04-22",45
|
114
|
-
"1959-04-23",54
|
115
|
-
"1959-04-24",34
|
116
|
-
"1959-04-25",37
|
117
|
-
"1959-04-26",35
|
118
|
-
"1959-04-27",40
|
119
|
-
"1959-04-28",42
|
120
|
-
"1959-04-29",58
|
121
|
-
"1959-04-30",51
|
122
|
-
"1959-05-01",32
|
123
|
-
"1959-05-02",35
|
124
|
-
"1959-05-03",38
|
125
|
-
"1959-05-04",33
|
126
|
-
"1959-05-05",39
|
127
|
-
"1959-05-06",47
|
128
|
-
"1959-05-07",38
|
129
|
-
"1959-05-08",52
|
130
|
-
"1959-05-09",30
|
131
|
-
"1959-05-10",34
|
132
|
-
"1959-05-11",40
|
133
|
-
"1959-05-12",35
|
134
|
-
"1959-05-13",42
|
135
|
-
"1959-05-14",41
|
136
|
-
"1959-05-15",42
|
137
|
-
"1959-05-16",38
|
138
|
-
"1959-05-17",24
|
139
|
-
"1959-05-18",34
|
140
|
-
"1959-05-19",43
|
141
|
-
"1959-05-20",36
|
142
|
-
"1959-05-21",55
|
143
|
-
"1959-05-22",41
|
144
|
-
"1959-05-23",45
|
145
|
-
"1959-05-24",41
|
146
|
-
"1959-05-25",37
|
147
|
-
"1959-05-26",43
|
148
|
-
"1959-05-27",39
|
149
|
-
"1959-05-28",33
|
150
|
-
"1959-05-29",43
|
151
|
-
"1959-05-30",40
|
152
|
-
"1959-05-31",38
|
153
|
-
"1959-06-01",45
|
154
|
-
"1959-06-02",46
|
155
|
-
"1959-06-03",34
|
156
|
-
"1959-06-04",35
|
157
|
-
"1959-06-05",48
|
158
|
-
"1959-06-06",51
|
159
|
-
"1959-06-07",36
|
160
|
-
"1959-06-08",33
|
161
|
-
"1959-06-09",46
|
162
|
-
"1959-06-10",42
|
163
|
-
"1959-06-11",48
|
164
|
-
"1959-06-12",34
|
165
|
-
"1959-06-13",41
|
166
|
-
"1959-06-14",35
|
167
|
-
"1959-06-15",40
|
168
|
-
"1959-06-16",34
|
169
|
-
"1959-06-17",30
|
170
|
-
"1959-06-18",36
|
171
|
-
"1959-06-19",40
|
172
|
-
"1959-06-20",39
|
173
|
-
"1959-06-21",45
|
174
|
-
"1959-06-22",38
|
175
|
-
"1959-06-23",47
|
176
|
-
"1959-06-24",33
|
177
|
-
"1959-06-25",30
|
178
|
-
"1959-06-26",42
|
179
|
-
"1959-06-27",43
|
180
|
-
"1959-06-28",41
|
181
|
-
"1959-06-29",41
|
182
|
-
"1959-06-30",59
|
183
|
-
"1959-07-01",43
|
184
|
-
"1959-07-02",45
|
185
|
-
"1959-07-03",38
|
186
|
-
"1959-07-04",37
|
187
|
-
"1959-07-05",45
|
188
|
-
"1959-07-06",42
|
189
|
-
"1959-07-07",57
|
190
|
-
"1959-07-08",46
|
191
|
-
"1959-07-09",51
|
192
|
-
"1959-07-10",41
|
193
|
-
"1959-07-11",47
|
194
|
-
"1959-07-12",26
|
195
|
-
"1959-07-13",35
|
196
|
-
"1959-07-14",44
|
197
|
-
"1959-07-15",41
|
198
|
-
"1959-07-16",42
|
199
|
-
"1959-07-17",36
|
200
|
-
"1959-07-18",45
|
201
|
-
"1959-07-19",45
|
202
|
-
"1959-07-20",45
|
203
|
-
"1959-07-21",47
|
204
|
-
"1959-07-22",38
|
205
|
-
"1959-07-23",42
|
206
|
-
"1959-07-24",35
|
207
|
-
"1959-07-25",36
|
208
|
-
"1959-07-26",39
|
209
|
-
"1959-07-27",45
|
210
|
-
"1959-07-28",43
|
211
|
-
"1959-07-29",47
|
212
|
-
"1959-07-30",36
|
213
|
-
"1959-07-31",41
|
214
|
-
"1959-08-01",50
|
215
|
-
"1959-08-02",39
|
216
|
-
"1959-08-03",41
|
217
|
-
"1959-08-04",46
|
218
|
-
"1959-08-05",64
|
219
|
-
"1959-08-06",45
|
220
|
-
"1959-08-07",34
|
221
|
-
"1959-08-08",38
|
222
|
-
"1959-08-09",44
|
223
|
-
"1959-08-10",48
|
224
|
-
"1959-08-11",46
|
225
|
-
"1959-08-12",44
|
226
|
-
"1959-08-13",37
|
227
|
-
"1959-08-14",39
|
228
|
-
"1959-08-15",44
|
229
|
-
"1959-08-16",45
|
230
|
-
"1959-08-17",33
|
231
|
-
"1959-08-18",44
|
232
|
-
"1959-08-19",38
|
233
|
-
"1959-08-20",46
|
234
|
-
"1959-08-21",46
|
235
|
-
"1959-08-22",40
|
236
|
-
"1959-08-23",39
|
237
|
-
"1959-08-24",44
|
238
|
-
"1959-08-25",48
|
239
|
-
"1959-08-26",50
|
240
|
-
"1959-08-27",41
|
241
|
-
"1959-08-28",42
|
242
|
-
"1959-08-29",51
|
243
|
-
"1959-08-30",41
|
244
|
-
"1959-08-31",44
|
245
|
-
"1959-09-01",38
|
246
|
-
"1959-09-02",68
|
247
|
-
"1959-09-03",40
|
248
|
-
"1959-09-04",42
|
249
|
-
"1959-09-05",51
|
250
|
-
"1959-09-06",44
|
251
|
-
"1959-09-07",45
|
252
|
-
"1959-09-08",36
|
253
|
-
"1959-09-09",57
|
254
|
-
"1959-09-10",44
|
255
|
-
"1959-09-11",42
|
256
|
-
"1959-09-12",53
|
257
|
-
"1959-09-13",42
|
258
|
-
"1959-09-14",34
|
259
|
-
"1959-09-15",40
|
260
|
-
"1959-09-16",56
|
261
|
-
"1959-09-17",44
|
262
|
-
"1959-09-18",53
|
263
|
-
"1959-09-19",55
|
264
|
-
"1959-09-20",39
|
265
|
-
"1959-09-21",59
|
266
|
-
"1959-09-22",55
|
267
|
-
"1959-09-23",73
|
268
|
-
"1959-09-24",55
|
269
|
-
"1959-09-25",44
|
270
|
-
"1959-09-26",43
|
271
|
-
"1959-09-27",40
|
272
|
-
"1959-09-28",47
|
273
|
-
"1959-09-29",51
|
274
|
-
"1959-09-30",56
|
275
|
-
"1959-10-01",49
|
276
|
-
"1959-10-02",54
|
277
|
-
"1959-10-03",56
|
278
|
-
"1959-10-04",47
|
279
|
-
"1959-10-05",44
|
280
|
-
"1959-10-06",43
|
281
|
-
"1959-10-07",42
|
282
|
-
"1959-10-08",45
|
283
|
-
"1959-10-09",50
|
284
|
-
"1959-10-10",48
|
285
|
-
"1959-10-11",43
|
286
|
-
"1959-10-12",40
|
287
|
-
"1959-10-13",59
|
288
|
-
"1959-10-14",41
|
289
|
-
"1959-10-15",42
|
290
|
-
"1959-10-16",51
|
291
|
-
"1959-10-17",49
|
292
|
-
"1959-10-18",45
|
293
|
-
"1959-10-19",43
|
294
|
-
"1959-10-20",42
|
295
|
-
"1959-10-21",38
|
296
|
-
"1959-10-22",47
|
297
|
-
"1959-10-23",38
|
298
|
-
"1959-10-24",36
|
299
|
-
"1959-10-25",42
|
300
|
-
"1959-10-26",35
|
301
|
-
"1959-10-27",28
|
302
|
-
"1959-10-28",44
|
303
|
-
"1959-10-29",36
|
304
|
-
"1959-10-30",45
|
305
|
-
"1959-10-31",46
|
306
|
-
"1959-11-01",48
|
307
|
-
"1959-11-02",49
|
308
|
-
"1959-11-03",43
|
309
|
-
"1959-11-04",42
|
310
|
-
"1959-11-05",59
|
311
|
-
"1959-11-06",45
|
312
|
-
"1959-11-07",52
|
313
|
-
"1959-11-08",46
|
314
|
-
"1959-11-09",42
|
315
|
-
"1959-11-10",40
|
316
|
-
"1959-11-11",40
|
317
|
-
"1959-11-12",45
|
318
|
-
"1959-11-13",35
|
319
|
-
"1959-11-14",35
|
320
|
-
"1959-11-15",40
|
321
|
-
"1959-11-16",39
|
322
|
-
"1959-11-17",33
|
323
|
-
"1959-11-18",42
|
324
|
-
"1959-11-19",47
|
325
|
-
"1959-11-20",51
|
326
|
-
"1959-11-21",44
|
327
|
-
"1959-11-22",40
|
328
|
-
"1959-11-23",57
|
329
|
-
"1959-11-24",49
|
330
|
-
"1959-11-25",45
|
331
|
-
"1959-11-26",49
|
332
|
-
"1959-11-27",51
|
333
|
-
"1959-11-28",46
|
334
|
-
"1959-11-29",44
|
335
|
-
"1959-11-30",52
|
336
|
-
"1959-12-01",45
|
337
|
-
"1959-12-02",32
|
338
|
-
"1959-12-03",46
|
339
|
-
"1959-12-04",41
|
340
|
-
"1959-12-05",34
|
341
|
-
"1959-12-06",33
|
342
|
-
"1959-12-07",36
|
343
|
-
"1959-12-08",49
|
344
|
-
"1959-12-09",43
|
345
|
-
"1959-12-10",43
|
346
|
-
"1959-12-11",34
|
347
|
-
"1959-12-12",39
|
348
|
-
"1959-12-13",35
|
349
|
-
"1959-12-14",52
|
350
|
-
"1959-12-15",47
|
351
|
-
"1959-12-16",52
|
352
|
-
"1959-12-17",39
|
353
|
-
"1959-12-18",40
|
354
|
-
"1959-12-19",42
|
355
|
-
"1959-12-20",42
|
356
|
-
"1959-12-21",53
|
357
|
-
"1959-12-22",39
|
358
|
-
"1959-12-23",40
|
359
|
-
"1959-12-24",38
|
360
|
-
"1959-12-25",44
|
361
|
-
"1959-12-26",34
|
362
|
-
"1959-12-27",37
|
363
|
-
"1959-12-28",52
|
364
|
-
"1959-12-29",48
|
365
|
-
"1959-12-30",55
|
366
|
-
"1959-12-31",50
|
@@ -1,169 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"cells": [
|
3
|
-
{
|
4
|
-
"cell_type": "code",
|
5
|
-
"execution_count": null,
|
6
|
-
"id": "5a3e5b8d-cfa8-4e7d-9641-3bf6a3366818",
|
7
|
-
"metadata": {},
|
8
|
-
"outputs": [],
|
9
|
-
"source": [
|
10
|
-
"import pandas as pd\n",
|
11
|
-
"import numpy as np\n",
|
12
|
-
"import matplotlib.pyplot as plt\n",
|
13
|
-
"import seaborn as sns\n",
|
14
|
-
"from statsmodels.tsa.stattools import adfuller\n",
|
15
|
-
"from statsmodels.graphics.tsaplots import plot_acf, plot_pacf"
|
16
|
-
]
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"cell_type": "code",
|
20
|
-
"execution_count": null,
|
21
|
-
"id": "08f9b3df-ed97-4353-9a21-1a5b1894263c",
|
22
|
-
"metadata": {},
|
23
|
-
"outputs": [],
|
24
|
-
"source": [
|
25
|
-
"bill_data = pd.read_csv(\"bill charge.csv\")\n",
|
26
|
-
"bill_data.head()"
|
27
|
-
]
|
28
|
-
},
|
29
|
-
{
|
30
|
-
"cell_type": "code",
|
31
|
-
"execution_count": null,
|
32
|
-
"id": "b66bbac2-8762-46d7-a4ea-374d5088a62b",
|
33
|
-
"metadata": {},
|
34
|
-
"outputs": [],
|
35
|
-
"source": [
|
36
|
-
"print(\"Dataset Loaded Successfully\")\n",
|
37
|
-
"display(bill_data.info())\n",
|
38
|
-
"display(bill_data.head())"
|
39
|
-
]
|
40
|
-
},
|
41
|
-
{
|
42
|
-
"cell_type": "code",
|
43
|
-
"execution_count": null,
|
44
|
-
"id": "8c1f8430-5973-4533-aac8-56aa7bdd6507",
|
45
|
-
"metadata": {},
|
46
|
-
"outputs": [],
|
47
|
-
"source": [
|
48
|
-
"bill_data['Date'] = pd.to_datetime(bill_data['Date'])\n",
|
49
|
-
"\n",
|
50
|
-
"bill_data['Year'] = bill_data['Date'].dt.year\n",
|
51
|
-
"bill_data['Month'] = bill_data['Date'].dt.month\n",
|
52
|
-
"\n",
|
53
|
-
"bill_data_numeric = bill_data[['Date', 'Bill Charge', 'Year', 'Month']]\n",
|
54
|
-
"\n",
|
55
|
-
"grouped = bill_data_numeric.groupby(['Year', 'Month'])['Bill Charge'].sum().reset_index()"
|
56
|
-
]
|
57
|
-
},
|
58
|
-
{
|
59
|
-
"cell_type": "code",
|
60
|
-
"execution_count": null,
|
61
|
-
"id": "74b2cf18-25d6-4707-8b32-81b588106545",
|
62
|
-
"metadata": {},
|
63
|
-
"outputs": [],
|
64
|
-
"source": [
|
65
|
-
"plt.figure(figsize=(12, 5))\n",
|
66
|
-
"sns.histplot(bill_data['Bill Charge'], bins=20, kde=True)\n",
|
67
|
-
"plt.title(\"Histogram of Bill Charges\")\n",
|
68
|
-
"plt.show()"
|
69
|
-
]
|
70
|
-
},
|
71
|
-
{
|
72
|
-
"cell_type": "code",
|
73
|
-
"execution_count": null,
|
74
|
-
"id": "c4e0af23-6eb9-477f-9a96-680f330b4a77",
|
75
|
-
"metadata": {},
|
76
|
-
"outputs": [],
|
77
|
-
"source": [
|
78
|
-
"sns.kdeplot(bill_data['Bill Charge'], fill=True)\n",
|
79
|
-
"plt.title(\"Density Plot of Bill Charges\")\n",
|
80
|
-
"plt.show()"
|
81
|
-
]
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"cell_type": "code",
|
85
|
-
"execution_count": null,
|
86
|
-
"id": "9a0540e9-6a05-47cf-8bd3-af5dfbc6d1c4",
|
87
|
-
"metadata": {},
|
88
|
-
"outputs": [],
|
89
|
-
"source": [
|
90
|
-
"plot_acf(bill_data['Bill Charge'])\n",
|
91
|
-
"plt.show()\n",
|
92
|
-
"\n",
|
93
|
-
"plot_pacf(bill_data['Bill Charge'])\n",
|
94
|
-
"plt.show()"
|
95
|
-
]
|
96
|
-
},
|
97
|
-
{
|
98
|
-
"cell_type": "code",
|
99
|
-
"execution_count": null,
|
100
|
-
"id": "728ec23f-b955-4aa8-887c-71a32f87df5a",
|
101
|
-
"metadata": {},
|
102
|
-
"outputs": [],
|
103
|
-
"source": [
|
104
|
-
"bill_data['Rolling_Mean_3'] = bill_data['Bill Charge'].rolling(window=3).mean()\n",
|
105
|
-
"bill_data['Expanding_Mean'] = bill_data['Bill Charge'].expanding().mean()\n",
|
106
|
-
"bill_data.head()"
|
107
|
-
]
|
108
|
-
},
|
109
|
-
{
|
110
|
-
"cell_type": "code",
|
111
|
-
"execution_count": null,
|
112
|
-
"id": "65a31329-f845-4f31-84f5-7620bcd7913e",
|
113
|
-
"metadata": {},
|
114
|
-
"outputs": [],
|
115
|
-
"source": [
|
116
|
-
"adf_result = adfuller(bill_data['Bill Charge'])\n",
|
117
|
-
"print(\"ADF Statistic:\", adf_result[0])\n",
|
118
|
-
"print(\"p-value:\", adf_result[1])"
|
119
|
-
]
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"cell_type": "code",
|
123
|
-
"execution_count": null,
|
124
|
-
"id": "ea818bd6-58b8-4cbe-a1ae-311a5409c4d6",
|
125
|
-
"metadata": {},
|
126
|
-
"outputs": [],
|
127
|
-
"source": [
|
128
|
-
"bill_data['Date'] = pd.to_datetime(bill_data['Date'])\n",
|
129
|
-
"\n",
|
130
|
-
"bill_data.set_index('Date', inplace=True)\n",
|
131
|
-
"\n",
|
132
|
-
"bill_data['Bill Charge'] = pd.to_numeric(bill_data['Bill Charge'], errors='coerce')\n",
|
133
|
-
"bill_data.dropna(subset=['Bill Charge'], inplace=True)\n"
|
134
|
-
]
|
135
|
-
},
|
136
|
-
{
|
137
|
-
"cell_type": "code",
|
138
|
-
"execution_count": null,
|
139
|
-
"id": "512a802a-2039-45c7-8306-d99a2a0add4f",
|
140
|
-
"metadata": {},
|
141
|
-
"outputs": [],
|
142
|
-
"source": [
|
143
|
-
"bill_data = bill_data.drop_duplicates(keep = 'first')\n",
|
144
|
-
"bill_data"
|
145
|
-
]
|
146
|
-
}
|
147
|
-
],
|
148
|
-
"metadata": {
|
149
|
-
"kernelspec": {
|
150
|
-
"display_name": "Python 3 (ipykernel)",
|
151
|
-
"language": "python",
|
152
|
-
"name": "python3"
|
153
|
-
},
|
154
|
-
"language_info": {
|
155
|
-
"codemirror_mode": {
|
156
|
-
"name": "ipython",
|
157
|
-
"version": 3
|
158
|
-
},
|
159
|
-
"file_extension": ".py",
|
160
|
-
"mimetype": "text/x-python",
|
161
|
-
"name": "python",
|
162
|
-
"nbconvert_exporter": "python",
|
163
|
-
"pygments_lexer": "ipython3",
|
164
|
-
"version": "3.12.4"
|
165
|
-
}
|
166
|
-
},
|
167
|
-
"nbformat": 4,
|
168
|
-
"nbformat_minor": 5
|
169
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
Date,Patient Name,Age,Bill Charge
|
2
|
-
1/1/2023,Bob,33,100.5
|
3
|
-
1/4/2023,Bob,24,250
|
4
|
-
1/7/2023,Bob,56,75
|
5
|
-
1/7/2023,Eve,40,300
|
6
|
-
1/9/2023,Charlie,40,150.5
|
7
|
-
1/10/2023,Charlie,24,200
|
8
|
-
1/11/2023,Bob,40,175
|
9
|
-
1/11/2023,Eve,40,400
|
10
|
-
1/11/2023,Bob,40,120
|
11
|
-
1/12/2023,Charlie,42,180
|
12
|
-
1/14/2023,Charlie,24,90
|
13
|
-
1/17/2023,Alice,33,50
|
14
|
-
1/18/2023,Eve,24,25
|
15
|
-
1/18/2023,Diana,24,75
|
16
|
-
1/20/2023,Eve,40,325
|
17
|
-
1/21/2023,Bob,24,60
|
18
|
-
1/21/2023,Diana,56,60
|
19
|
-
1/26/2023,Bob,42,100
|
20
|
-
1/29/2023,Diana,40,250
|
21
|
-
1/30/2023,Alice,33,40
|