Purpose: When converting a file (for example, csv file) accumulated in an arbitrary folder into a dataframe with python, an error may occur if there is an empty file with no contents, so a preventive measure for that.
sample.py
import os
if os.path.getsize(file_path):
(write a process...)