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

Function convert_days_sentinel

pandas/tests/io/parser/test_converters.py:135–148  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

133 return x
134
135 def convert_days_sentinel(x):
136 x = x.strip()
137
138 if not x:
139 return np.nan
140
141 is_plus = x.endswith("+")
142
143 if is_plus:
144 x = int(x[:-1]) + 1
145 else:
146 x = int(x)
147
148 return x
149
150 def convert_score(x):
151 x = x.strip()

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
endswithMethod · 0.80

Tested by

no test coverage detected