MCPcopy
hub / github.com/pandas-dev/pandas / _missing_double

Method _missing_double

pandas/io/sas/sas_xport.py:441–450  ·  view source on GitHub ↗
(self, vec)

Source from the content-addressed store, hash-verified

439 return self.read(nrows=size)
440
441 def _missing_double(self, vec):
442 v = vec.view(dtype="u1,u1,u2,u4")
443 miss = (v["f1"] == 0) & (v["f2"] == 0) & (v["f3"] == 0)
444 miss1 = (
445 ((v["f0"] >= 0x41) & (v["f0"] <= 0x5A))
446 | (v["f0"] == 0x5F)
447 | (v["f0"] == 0x2E)
448 )
449 miss &= miss1
450 return miss
451
452 def read(self, nrows: int | None = None) -> pd.DataFrame:
453 """Read observations from SAS Xport file, returning as data frame.

Callers 1

readMethod · 0.95

Calls 1

viewMethod · 0.45

Tested by

no test coverage detected