Demo entry 6775411

Adriana Patterson

   

Submitted by anonymous on Nov 24, 2018 at 20:29
Language: Python 3. Code size: 276 Bytes.

# Load the flu datasets, read fields by tabs
df_fluA = pd.read_csv('flu_A.tsv', sep='\t')
df_fluB = pd.read_csv('flu_B.tsv', sep='\t')

# Remove spaces in column names in df_fluA and check 
df_fluA.columns = [c.replace(' ', '_') for c in df_fluA.columns]
df_fluA.columns

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).