Python mendapatkan nama file dari jalur
import os
print(os.path.basename(your_path))
Itchy Ibis
import os
print(os.path.basename(your_path))
import os
infile = "./../../../../_data/matrix_data/5mer_normalized.tsv"
print(os.path.basename(infile))
>>> "5mer_normalized.tsv"