Skip to content

Instantly share code, notes, and snippets.

@kimrojas
Created June 2, 2022 07:12
Show Gist options
  • Save kimrojas/392f4f806591f2da4c08b2d0b71b7931 to your computer and use it in GitHub Desktop.
Save kimrojas/392f4f806591f2da4c08b2d0b71b7931 to your computer and use it in GitHub Desktop.
Reading projwfc (Quantum Espresso) output files via PANDAS
import pandas as pd
test_file = 'name_of_test_file.csv'
df = pd.read_csv(test_file, sep='\s+', header=0, usecols=[0,1,2], names=['E (eV)', 'UP', 'DN'] )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment