This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Drug_0 | Drug_1 | Correlation | |
---|---|---|---|
ALCEVER | ALCEVER | 1 | |
ANLEVER | ALCEVER | 0.211840172 | |
BLNTEVER | ALCEVER | 0.328981944 | |
CIGEVER | ALCEVER | 0.531660634 | |
COCEVER | ALCEVER | 0.219352848 | |
CRKEVER | ALCEVER | 0.098581456 | |
HEREVER | ALCEVER | 0.078915182 | |
INHEVER | ALCEVER | 0.129854299 | |
MJEVER | ALCEVER | 0.484604210 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pandas has good support for manipulating dataframes as is cost-efficient at doing so. | |
# By comparison I couldn't process the file in Excel because it was too large. | |
import pandas as pd | |
# Load the TSV file using a tab delimeter | |
df = pd.read_csv("35509-0001-Data.tsv", sep='\t') | |
# The filter function slices columns from the dataset. Each column was | |
df.filter(items=["CASEID", "CIGEVER", "SNFEVER", "CHEWEVER", "PIPEVER", "ALCEVER", "MJEVER", "COCEVER", "CRKEVER", "HEREVER", "INHEVER", "ANLEVER", "STMEVER", "SEDEVER", "BLNTEVER", "TRNEVER"]) |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CASEID Drug Taken | |
1 CIGEVER 1 | |
1 SNFEVER 0 | |
1 CHEWEVER 0 | |
1 PIPEVER 0 | |
1 ALCEVER 0 | |
1 MJEVER 0 | |
1 COCEVER 0 | |
1 CRKEVER 0 | |
1 HEREVER 0 |
NewerOlder