ciasimbaya commited on
Commit
6c50280
·
1 Parent(s): 38789ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -9,15 +9,15 @@ import os
9
 
10
 
11
  def predictAirPassengers(df, split):
12
- #ts= pd.read_csv('AirPassengers.csv')
13
- #df2 =ts.copy()
14
- #ttSplit=split/100
15
- #ts['Month']=pd.to_datetime(ts['Month'])
16
- #ts.rename(columns={'#Passengers':'Passengers'},inplace=True)
17
- #ts=ts.set_index(['Month'])
18
- #ts['months'] = [x.month for x in ts.index]
19
- #ts['years'] = [x.year for x in ts.index]
20
- #ts.reset_index(drop=True, inplace=True)
21
 
22
  # Split Data
23
  X=ts.drop("Passengers",axis=1)
 
9
 
10
 
11
  def predictAirPassengers(df, split):
12
+ ts= pd.read_csv('AirPassengers.csv')
13
+ df2 =ts.copy()
14
+ ttSplit=split/100
15
+ ts['Month']=pd.to_datetime(ts['Month'])
16
+ ts.rename(columns={'#Passengers':'Passengers'},inplace=True)
17
+ ts=ts.set_index(['Month'])
18
+ ts['months'] = [x.month for x in ts.index]
19
+ ts['years'] = [x.year for x in ts.index]
20
+ ts.reset_index(drop=True, inplace=True)
21
 
22
  # Split Data
23
  X=ts.drop("Passengers",axis=1)