File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -92,15 +92,15 @@ def read_bsrn(filename):
92
92
if str (filename ).endswith ('.gz' ): # check if file is a gzipped (.gz) file
93
93
with gzip .open (filename , 'rt' ) as f :
94
94
for num , line in enumerate (f ):
95
- if num == 1 : # Get month and year from the 2nd line
95
+ if num == 1 : # Get month and year from the 2nd line
96
96
start_date = pd .Timestamp (year = int (line [7 :11 ]),
97
97
month = int (line [3 :6 ]), day = 1 )
98
98
if line .startswith ('*' ): # Find start of all logical records
99
99
line_no_dict [line [2 :6 ]] = num # key is 4 digit LR number
100
100
else :
101
101
with open (filename , 'r' ) as f :
102
102
for num , line in enumerate (f ):
103
- if num == 1 : # Get month and year from the 2nd line
103
+ if num == 1 : # Get month and year from the 2nd line
104
104
start_date = pd .Timestamp (year = int (line [7 :11 ]),
105
105
month = int (line [3 :6 ]), day = 1 )
106
106
if line .startswith ('*' ): # Find start of all logical records
You can’t perform that action at this time.
0 commit comments