Skip to content

Commit aae69c8

Browse files
committed
import isna from a single point
1 parent 05f51ad commit aae69c8

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

src/datatable/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
# IN THE SOFTWARE.
2222
#-------------------------------------------------------------------------------
2323
from .frame import Frame
24-
from .expr import (min, max, sd, sum, count, countna, first, abs, exp, isna,
24+
from .math import isna
25+
from .expr import (min, max, sd, sum, count, countna, first, abs, exp,
2526
last, log, log10, f, g, median, cov, corr, nunique)
2627
from .lib._datatable import (
2728
as_type,

src/datatable/expr/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# IN THE SOFTWARE.
2222
#-------------------------------------------------------------------------------
2323
from .expr import f, g, Expr
24-
from .math import abs, log, log10, exp, isna
24+
from .math import abs, log, log10, exp
2525
from .reduce import (
2626
sum, count, countna, first, last, median, min, max, sd, cov, corr, nunique)
2727

@@ -36,7 +36,6 @@
3636
"f",
3737
"first",
3838
"g",
39-
"isna",
4039
"last",
4140
"log",
4241
"log10",

src/datatable/expr/math.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,8 @@
1515
# limitations under the License.
1616
# -------------------------------------------------------------------------------
1717
from datatable.lib import core
18-
import math
19-
20-
__all__ = ("abs", "exp", "log", "log10", "isna")
21-
22-
23-
def isna(iterable):
24-
if isinstance(iterable, core.FExpr):
25-
return core.isna(iterable)
26-
return (iterable is None) or (iterable is math.nan)
2718

19+
__all__ = ("abs", "exp", "log", "log10")
2820

2921
# Deprecated, use math namespace instead
3022
abs = core.abs

src/datatable/math.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
isclose,
4949
isfinite,
5050
isinf,
51-
isna,
5251
ldexp,
5352
lgamma,
5453
log,

0 commit comments

Comments
 (0)