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

Please help check this line #7

Open
hachikong opened this issue Aug 17, 2022 · 0 comments
Open

Please help check this line #7

hachikong opened this issue Aug 17, 2022 · 0 comments

Comments

@hachikong
Copy link

Dear authors,
Please help check the following line:

if "IDC" in slide_data['oncotree_code']: # must be BRCA (and if so, use only IDCs)

I have tested the code as follows:

import pandas as pd
import numpy as np

csv_path = 'MCAT_master/datasets_sig_csv/tcga_brca_all_clean.csv.zip'
slide_data = pd.read_csv(csv_path, low_memory=False)

if "IDC" in slide_data['oncotree_code']:  # must be BRCA (and if so, use only IDCs)
    print('Yes, IDC is in there')
else:
    print('No, IDC is not in there')

if "IDC" in slide_data['oncotree_code'].values:  # must be BRCA (and if so, use only IDCs)
    print('Yes, IDC is in there')
else:
    print('No, IDC is not in there')

And the output is as follows:

No, IDC is not in there
Yes, IDC is in there

Is this a bug? My pandas version is 1.4.1. Could you please help check it? Thanks a lot!

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

1 participant