Search found 4122 matches

by Eli
4 hours ago
Forum: OpenChat
Topic: Re: What is in Your Mind?
Replies: 672
Views: 273185

Re: Re: What is in Your Mind?

by Eli
9 hours ago
Forum: OpenChat
Topic: Re: What is in Your Mind?
Replies: 672
Views: 273185

Re: Re: What is in Your Mind?

by Eli
10 hours ago
Forum: Linux and Unix Based Operating Systems
Topic: Programmatically Move Files from One Folder to Another
Replies: 5
Views: 1268

Re: Programmatically Move Files from One Folder to Another

Here is another Python code that checks a folder for .xls files and determines if they are in Excel format. If the file is not in Excel format, it deletes the file: import os import pandas as pd folder_path = 'path_to_parent_directory' for file in os.listdir(folder_path): if file.endswith('.xls'): f...
by Eli
10 hours ago
Forum: Linux and Unix Based Operating Systems
Topic: Programmatically Move Files from One Folder to Another
Replies: 5
Views: 1268

Re: Programmatically Move Files from One Folder to Another

This code is designed to modify the file extensions from .csv to xls. It will apply this change to all .csv files located in both the parent directory and its subdirectories: import os def rename_files(path): for root, dirs, files in os.walk(path): for file in files: if file.endswith(".csv"...

Go to advanced search