with python I'm reading an excel file via pandas.
My problem is that I'm missing the leading zeros and I can't just fill them to a specific length because it always varies.
Example: 001,0001,0020
This is my code for reading the data:
def readDataFromFile(self, file):
try:
df = pd.read_excel(file)
list = df.values.tolist()
print(f'{file} >> Read')
return list
except:
print('No input or wrong input given')
return