« first day (2535 days earlier)      last day (806 days later) » 

10:45 PM
Ok follow up, it works for my directory of 147 files, but now I am working with a directory of 1248, it threw this error:

>>>
path = ("/Users/name/Desktop/PDB/training_set_normseq_prof/")
# list all files in the directory, assuming this directory contains only files csv files that you need to save
for file in os.listdir(path):
df = pd.read_csv(path+file, sep="\t", header=None).astype(float)
df = df.to_numpy()
arr_2d = df
result = np.all((arr_2d == 0))
if result:
print('2D Array contains only 0')
 
1 message moved from Python
 
11:10 PM
ewww python
 
1 message moved from Python
 

« first day (2535 days earlier)      last day (806 days later) »