scFEA icon indicating copy to clipboard operation
scFEA copied to clipboard

questions about Pandas?

Open DylanGuo1101 opened this issue 10 months ago • 4 comments

(base) C:\Users\Lenovo\scFEA>python src/scFEA.py --data_dir data --input_dir input --test_file Seurat_geneExpr.csv --moduleGene_file module_gene_glutaminolysis1_m23.csv --stoichiometry_matrix cmMat_glutaminolysis1_c17_m23.csv --cName_file cName_glutaminolysis1_c17_m23.csv --output_flux_file output/Seurat_gluta_flux.csv --output_balance_file output/Seurat_gluta_balance.csv Starting load data... Load compound name file, the balance output will have compound name. Load data done. Starting process data... Traceback (most recent call last): File "C:\Users\Lenovo\scFEA\src\scFEA.py", line 370, in main(args) File "C:\Users\Lenovo\scFEA\src\scFEA.py", line 172, in main geneExprDf = geneExprDf.append(temp, ignore_index = True, sort=False) ^^^^^^^^^^^^^^^^^ File "D:\ANACONDA\Lib\site-packages\pandas\core\generic.py", line 6296, in getattr return object.getattribute(self, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'DataFrame' object has no attribute 'append'. Did you mean: '_append'?

Is this question about pandas? How to resolve? Thanks a lot!

DylanGuo1101 avatar Apr 03 '24 15:04 DylanGuo1101

I ran into the same error yesterday, downgrading my pandas to version to 1.2.0 fixed it for me. I manually installed pandas1.2.0 before re-installing scFEA.

Hope this helps

borisvdm avatar Apr 04 '24 09:04 borisvdm

I ran into the same error yesterday, downgrading my pandas to version to 1.2.0 fixed it for me. I manually installed pandas1.2.0 before re-installing scFEA.

Hope this helps

Thank you for your help!

DylanGuo1101 avatar Apr 05 '24 02:04 DylanGuo1101

I tried to downgrade the pandas version, but also failed with the same error. Maybe in #53, I tried to change the source code with new attribute of pandas, i.e., pandas.concat. It worked.

LiuCanidk avatar Apr 10 '24 14:04 LiuCanidk

I tried to downgrade the pandas version, but also failed with the same error. Maybe in #53, I tried to change the source code with new attribute of pandas, i.e., pandas.concat. It worked.

Thank you!I have solved this problem with your help.

DylanGuo1101 avatar Apr 12 '24 15:04 DylanGuo1101