A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
import os, shutil, glob | |
def copy_subdirectory_files (file_src, file_dst): | |
for file in os.listdir(file_src): | |
for font in glob.iglob(os.path.join(file_src, file, "*.ttf")): | |
print("Copying file: "+ font) | |
shutil.copy(os.path.join(file_src, file, font), file_dst) |