Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Please help check this line #7

@hachikong

Description

@hachikong

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions