@@ -885,14 +885,12 @@ def read_data(self, load_flags, load_files, line_types):
885885 all_stat .loc [mask &
886886 ((all_stat ['5' ].isnull ()) |
887887 (all_stat ['5' ] == CN .NOTAV )), '5' ] = '.5'
888- all_stat ['5' ] = pd .to_numeric (all_stat ['5' ], errors = 'coerce' )
889888
890889 if all_stat [CN .LINE_TYPE ].eq (CN .CTS ).any ():
891890 mask = (all_stat .line_type == CN .CTS )
892891 all_stat .loc [mask &
893892 ((all_stat ['96' ].isnull ()) |
894893 (all_stat ['96' ] == CN .NOTAV )), '96' ] = '.5'
895- all_stat ['96' ] = pd .to_numeric (all_stat ['96' ], errors = 'coerce' )
896894
897895 if all_stat [CN .LINE_TYPE ].eq (CN .MCTS ).any ():
898896 mask = (all_stat .line_type == CN .MCTS )
@@ -902,7 +900,6 @@ def read_data(self, load_flags, load_files, line_types):
902900 str (1 / all_stat .loc [(all_stat .line_type == CN .MCTS ) &
903901 ((all_stat ['19' ].isnull ()) |
904902 (all_stat ['19' ] == CN .NOTAV )), '1' ])
905- all_stat ['19' ] = pd .to_numeric (all_stat ['19' ], errors = 'coerce' )
906903
907904 except (RuntimeError , TypeError , NameError , KeyError ):
908905 self .logger .error (
@@ -1186,7 +1183,6 @@ def read_data(self, load_flags, load_files, line_types):
11861183 # column 0 is Total, 1 is F, 2 is H
11871184 # column 3 is O (Oh) - if None, set to 0 (Zero)
11881185 vsdb_data .loc [vsdb_data ['3' ].isnull (), '3' ] = '0'
1189- vsdb_data ['3' ] = pd .to_numeric (vsdb_data ['3' ], errors = 'coerce' )
11901186 # fy = Total * F
11911187 vsdb_data ['4' ] = vsdb_data ['0' ].astype (
11921188 float ) * vsdb_data ['1' ].astype (float )
0 commit comments