I created a virtual env using venv (Python 3.xx).
There, I installed only a few packages:
I have one Python Script that reads the files in a given directory and manipulate their data using Pandas:
import pandas as pd
import os
path = os.getcwd()+'\Ph3_Charts'+'\\'
print(path)
from os import listdir
from os.path import isfile, join
days_range = [f for f in listdir(path) if isfile(join(path, f))]
dataframes = []
count = 0
for i in days_range:
try:
print(i,count)
dataframes.append(pd.read_excel(path+i, sheet_name = "Issues Jira", index_col=0))
count += 1
except:
pass
The problem seems to be with the variable path
, as the program breaks when it tries to append some data frames from each of the listed files.
However, the red marked passage above shows the path just fine... The strangest thing is that when I run this program locally, the iteration works ok.
Any guesses why this is happening please?