Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pd.append -> pd.concat #318

Merged
merged 2 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tdc/utils/split.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def create_group_split(train_val, seed, holdout_frac, group_column):
train_val_temp = train_val[train_val[group_column] == i]
np.random.seed(seed)
msk = np.random.rand(len(train_val_temp)) < (1 - holdout_frac)
train_df = train_df.append(train_val_temp[msk])
val_df = val_df.append(train_val_temp[~msk])
train_df = pd.concat([train_df, train_val_temp[msk]], axis=0)
val_df = pd.concat([val_df, train_val_temp[~msk]], axis=0)

return {
"train": train_df.reset_index(drop=True),
Expand Down
2 changes: 1 addition & 1 deletion tdc/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
#
__version__ = "1.0.7" # pragma: no cover
__version__ = "1.1.0" # pragma: no cover
Loading