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

questions about Pandas? #51

Open
DylanGuo1101 opened this issue Apr 3, 2024 · 4 comments
Open

questions about Pandas? #51

DylanGuo1101 opened this issue Apr 3, 2024 · 4 comments

Comments

@DylanGuo1101
Copy link

(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!

@borisvdm
Copy link

borisvdm commented Apr 4, 2024

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

@DylanGuo1101
Copy link
Author

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!

@LiuCanidk
Copy link

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.

@DylanGuo1101
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants