Skip to content

Commit

Permalink
Merge pull request #148 from realratchet/master
Browse files Browse the repository at this point in the history
fix imputation inconsistency
  • Loading branch information
realratchet authored Mar 15, 2024
2 parents 8f34953 + 42e07cd commit 423c359
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nimlite.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.1.0"
version = "0.2.0"
author = "Ratchet"
description = "Utilities for tablite to work with nim"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions tablite/imputation.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def carry_forward(T, targets, missing, tqdm=_tqdm, pbar=None):
total = len(targets) * len(T)
pbar = tqdm(total=total, desc="imputation.carry_forward", disable=Config.TQDM_DISABLE)

new = type(T)()
new = T.copy()
for name in T.columns:
if name in targets:
data = T[name][:] # create copy
Expand All @@ -131,7 +131,7 @@ def stats_method(T, targets, missing, method, tqdm=_tqdm, pbar=None):
total = len(targets)
pbar = tqdm(total=total, desc=f"imputation.{method}", disable=Config.TQDM_DISABLE)

new = type(T)()
new = T.copy()
for name in T.columns:
if name in targets:
col = T.columns[name]
Expand Down
2 changes: 1 addition & 1 deletion tablite/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
major, minor, patch = 2023, 10, 9
major, minor, patch = 2023, 10, 10
__version_info__ = (major, minor, patch)
__version__ = ".".join(str(i) for i in __version_info__)

0 comments on commit 423c359

Please sign in to comment.