Created
June 2, 2022 07:12
-
-
Save kimrojas/392f4f806591f2da4c08b2d0b71b7931 to your computer and use it in GitHub Desktop.
Reading projwfc (Quantum Espresso) output files via PANDAS
This file contains 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
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