keV to eV, column headers

main
Jeff Moe 2022-05-27 14:11:49 -06:00
parent 6f3ce9e4c4
commit 1b5e6eec02
1 changed files with 5 additions and 2 deletions

View File

@ -28,9 +28,12 @@
import numpy as np
import pandas as pd
# XXX
df = pd.read_csv('examples/olympus-vanta.csv', header = 0,
skiprows=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40], usecols = [0, 1])
skiprows=40,
names=('eV', 'Counts'),
usecols = [0, 1])
df['eV'] = df['eV'] * 1000
with pd.option_context('display.max_rows', None,
'display.max_columns', None