If you are starting with data in an .xlsx file, you must first convert it into a .csv file using the ’Save As’ feature, selecting ’CSV (Comma Delimited)’ format. Then, import your data into Python using code like the following:
import numpy as np
# Read filename.csv file into a pandas dataframe. Skip the first two lines as they are string headers.
data = np.loadtxt('filename.csv', skiprows=2, delimiter=',');
R = data[:,0];
V = data[:,1];