File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1817,15 +1817,17 @@ def read(
1817
1817
return data
1818
1818
1819
1819
def _do_convert_missing (self , data : DataFrame , convert_missing : bool ) -> DataFrame :
1820
+ # missing code for double was different in version 105 and prior
1821
+ old_missingdouble = float .fromhex ("0x1.0p333" )
1822
+
1820
1823
# Check for missing values, and replace if found
1821
1824
replacements = {}
1822
1825
for i in range (len (data .columns )):
1823
1826
fmt = self ._typlist [i ]
1824
- # missing code for double was different in version 105 and prior
1825
- # recode instances of this to the currently used value
1827
+ # recode instances of the old missing code to the currently used value
1826
1828
if self ._format_version <= 105 and fmt == "d" :
1827
1829
data .iloc [:, i ] = data .iloc [:, i ].replace (
1828
- float . fromhex ( "0x1.0p333" ) , self .MISSING_VALUES ["d" ]
1830
+ old_missingdouble , self .MISSING_VALUES ["d" ]
1829
1831
)
1830
1832
1831
1833
if self ._format_version <= 111 :
You can’t perform that action at this time.
0 commit comments