I have the following lines at the start of a Python script:
import pandas as pd
import numpy as np
from numpy import log as ln
import os
#Input files
Real_filename = r"REAL_S21_w.TRANS"
IMG_filename = r"IMG_S21_w.TRANS"
dir_name = r"G:\Departments\TE\Groups\ABT\Sections\PPE\Users\jensenl\python_data\Cadence_data"
suffix = ‘.xlsx’
Real_path = os.path.join(dir_name, Real_filename + suffix)
IMG_path = os.path.join(dir_name, IMG_filename + suffix)
However, when I try to run the script I get the error:
FileNotFoundError: [Errno 2] No such file or directory: ‘G:\Departments\TE\Groups\ABT\Sections\PPE\Users\jensenl\python_data\Cadence_data/REAL_S21_w.TRANS.xlsx’
Any suggestions, please, how to include directory paths in the script?
Thanks,
Mike