Skip to content

Instantly share code, notes, and snippets.

@azeezat
Created June 14, 2020 19:30
Show Gist options
  • Save azeezat/f9bcba2bbd5122f6a725e1b1a12db2a9 to your computer and use it in GitHub Desktop.
Save azeezat/f9bcba2bbd5122f6a725e1b1a12db2a9 to your computer and use it in GitHub Desktop.
import pandas as pd
# to read just one sheet to dataframe:
A = pd.read_excel(file_name, sheetname="sheet1")
B = pd.read_excel(file_name, sheetname="sheet2")
print(A.columns)
print(B.columns)
Output:
Index(['Unknown_sample_no', 'Unknown_sample_seq'], dtype='object')
Index(['Reference_sequences_ID', 'Reference_sequences'], dtype='object')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment