Advertisement
OreganoHauch

Read xls data

Apr 24th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. import xlrd
  2. import pandas as pd
  3. import numpy as np
  4. import matplotlib.pyplot as plt
  5.  
  6. df = pd.read_excel('Track_1_Standarddeviation_abbreviated.xls')
  7. for i in df.columns:
  8. for c in df[i]:
  9. df[i] = df[i].where(df[i] != 999999.0,np.nan)
  10. df[i] = df[i].where(df[i] != 0.0,np.nan)
  11.  
  12.  
  13.  
  14.  
  15. X_row = (df.T).iloc[1:,0]
  16.  
  17. Y_row = df.iloc[1:, 0]
  18. print(X_row)
  19. print(Y_row)
  20. # X_2d_array, Y_2d_array = np.mgrid
  21. # plt.pcolormesh([X, Y,] C, **kwargs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement