[python] 폴더 내의 모든 파일 가져오기 코드
# use glob to get all the csv files
# in the folder
# path = os.getcwd()
path = os.getcwd()
csv_files = glob.glob(os.path.join(path, "*.csv"))
# loop over the list of csv files
for f in csv_files:
    # read the csv file
    df = pd.read_csv(f)
    # print the location and filename
    print('Location:', f)
    print('File Name:', f.split("\\")[-1])
    # print the content
    print('Content:')
    # display(df)
          이 문서는
            jhy156456에 의해 작성되었습니다.
          
          마지막 수정 날짜:2022-12-10 19:16:42