@@ -322,7 +322,7 @@ def _parse_bsrn(fbuf, logical_records=('0100',)):
322322 LR_0100 = LR_0100 .reindex (sorted (LR_0100 .columns ), axis = 'columns' )
323323 LR_0100 .columns = BSRN_LR0100_COLUMNS
324324 # Set datetime index
325- LR_0100 .index = (start_date + pd .to_timedelta (LR_0100 ['day' ]- 1 , unit = 'd ' )
325+ LR_0100 .index = (start_date + pd .to_timedelta (LR_0100 ['day' ]- 1 , unit = 'D ' )
326326 + pd .to_timedelta (LR_0100 ['minute' ], unit = 'minutes' ))
327327 # Drop empty, minute, and day columns
328328 LR_0100 = LR_0100 .drop (columns = ['empty' , 'day' , 'minute' ])
@@ -336,7 +336,7 @@ def _parse_bsrn(fbuf, logical_records=('0100',)):
336336 na_values = [- 999.0 , - 99.9 ],
337337 colspecs = BSRN_LR0300_COL_SPECS ,
338338 names = BSRN_LR0300_COLUMNS )
339- LR_0300 .index = (start_date + pd .to_timedelta (LR_0300 ['day' ]- 1 , unit = 'd ' )
339+ LR_0300 .index = (start_date + pd .to_timedelta (LR_0300 ['day' ]- 1 , unit = 'D ' )
340340 + pd .to_timedelta (LR_0300 ['minute' ], unit = 'minutes' ))
341341 LR_0300 = LR_0300 .drop (columns = ['day' , 'minute' ]).astype (float )
342342 dfs .append (LR_0300 )
@@ -353,13 +353,13 @@ def _parse_bsrn(fbuf, logical_records=('0100',)):
353353 # Sort columns to match original order and assign column names
354354 LR_0500 = LR_0500 .reindex (sorted (LR_0500 .columns ), axis = 'columns' )
355355 LR_0500 .columns = BSRN_LR0500_COLUMNS
356- LR_0500 .index = (start_date + pd .to_timedelta (LR_0500 ['day' ]- 1 , unit = 'd ' )
356+ LR_0500 .index = (start_date + pd .to_timedelta (LR_0500 ['day' ]- 1 , unit = 'D ' )
357357 + pd .to_timedelta (LR_0500 ['minute' ], unit = 'minutes' ))
358358 LR_0500 = LR_0500 .drop (columns = ['empty' , 'day' , 'minute' ])
359359 dfs .append (LR_0500 )
360360
361361 if len (dfs ):
362- data = pd .concat (dfs , axis = 'columns' )
362+ data = pd .concat (dfs , axis = 'columns' , sort = False )
363363 else :
364364 data = _empty_dataframe_from_logical_records (logical_records )
365365 metadata = {}
0 commit comments