mims-harvard / TDC

Therapeutics Commons (TDC-2): Multimodal Foundation for Therapeutic Science
https://tdcommons.ai
MIT License
1.02k stars 174 forks source link

df.append() deprecated in pandas > 2.0.0 #315

Closed DevinDeSilva closed 2 months ago

DevinDeSilva commented 2 months ago

Describe the bug During the Loading of the negative samples of miRTarBase an AttributeError: 'DataFrame' object has no attribute 'append' occurs. I believe this is due to the fact that df.append is deprecated after pandas > 2.0.0 (I might be wrong)

To Reproduce Steps to reproduce the behavior:

from tdc.multi_pred import MTI data = MTI(name = 'miRTarBase') data = data.neg_sample(frac = 1) split = data.get_split()

Expected behavior Get a dictionary of dataframes with splits

Screenshots Screenshot 2024-09-16 214033

Environment:

Additional context Add any other context about the problem here.