Skip to content

Commit

Permalink
deprecation: append to concat
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Oct 14, 2024
1 parent 8049b53 commit 5467247
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sourcepredict/sourcepredictlib/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ def embed(self, method, out_csv, seed, threads=1, n_comp=2):
if out_csv:
to_write = self.my_embed.copy(deep=True)
y = self.labels.copy(deep=True)
y = y.append(
pd.Series(data=['sink']*len(list(self.test.columns)), index=self.test.columns, name='labels'))
y = pd.concat([y, pd.Series(data=['known']*len(list(self.test.columns)), index=self.test.columns, name='labels')])
to_write = to_write.merge(y, left_index=True, right_index=True)
to_write['name'] = to_write.index
to_write.to_csv(out_csv)
Expand Down

0 comments on commit 5467247

Please sign in to comment.