Тёмный
No video :(

Convert the content from multiple TXT or CSV files into Excel using Python (Real-World Example) 

Coding Is Fun
Подписаться 99 тыс.
Просмотров 15 тыс.
50% 1

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 28   
@CodingIsFun
@CodingIsFun 2 года назад
I hope you liked this Python automation example. Here are the links ⤵ 🌟 Source code: github.com/Sven-Bo/merge-txt-files-export-to-xlsm 🌟 Discord Server: pythonandvba.com/discord *Happy Coding!* 🚀
@brazilleros
@brazilleros 2 года назад
Hi Sven! Thank you once again for guiding us through the python automation ideas and your brilliant solutions! Me and my colleagues are grateful for your help with "merging multiply pdf''s by name" project . Thank you for your time and kindful assistance.😇
@CodingIsFun
@CodingIsFun 2 года назад
Hi Anton. Thanks for watching the video and for your comment. Happy to hear that you are satisfied with your pdf solution. Glad I could help! :)
@TimePasser
@TimePasser 2 года назад
Another practical cool tutorial from the legend. Thank you 😊
@CodingIsFun
@CodingIsFun 2 года назад
Happy to hear that you enjoyed this one too! Thanks for the comments and support, as always!
@florianroeseler2404
@florianroeseler2404 2 года назад
Extremely helpful, thank you!!
@CodingIsFun
@CodingIsFun 2 года назад
Glad it was helpful, Florian!
@sujungpark5764
@sujungpark5764 2 года назад
It is really helpful ! Thank you so much :)
@CodingIsFun
@CodingIsFun 2 года назад
An absolute pleasure, very happy to hear that you found it useful!
@wayneqwele8847
@wayneqwele8847 2 года назад
That was helpful, much appreciated!
@CodingIsFun
@CodingIsFun 2 года назад
Happy to hear that it was useful; thank you for taking the time to leave a comment and for watching the video!
@patriciohernandezballester2485
@patriciohernandezballester2485 2 года назад
How wonderful! Superb!
@CodingIsFun
@CodingIsFun 2 года назад
Thank you, Patricio! Also, many thanks for the outstanding contribution to our Discord channel! 👍
@patriciohernandezballester2485
@patriciohernandezballester2485 2 года назад
@@CodingIsFun Always thanks to you and the discord community. My summer holidays from work are over. When I get time again, I'll keep contributing. Thanks for the magnificent work teaching and in the production of digital content, because you are a source of inspiration for many young programmers ... well, and not so young 🤩
@walidmat8972
@walidmat8972 2 года назад
very cool video as usual 👌
@CodingIsFun
@CodingIsFun 2 года назад
Thank you! Glad you liked this one too! :)
@MrDanilofontana
@MrDanilofontana 2 года назад
Very nice example! I have a small question, why do you define the current_dir like that? I am always using something like os.getcwd() but now I am not sure if this is more efficient or not. Would you know if there is any difference? Thanks in advance and congratz for your content!
@CodingIsFun
@CodingIsFun 2 года назад
Thank you! You can also use the os module. There is nothing wrong with that. However, some viewers might have set their current working directory to a different folder. In that case, the script will return an error. Hence, I am using the (slightly convoluted) inline if statement with pathlib.
@rdtw8988
@rdtw8988 Год назад
Hi Sven, Thanks for the detailed coding explanation. It is very helpful. I also wnonder, if you change the file name from Student_number_Eng/Math to Student_Eng/Math_number, how would you change your code? Let say, the student number is from 001 to 100. I tried to use for loop, but it seems like python doesn't like it.
@CodingIsFun
@CodingIsFun Год назад
Thanks so much for watching the video and leaving a comment! Your request is definitely noted. However, I get a ton of requests for custom solutions and, as much as I'd love to help everyone out, I just don't have the time in my schedule to develop and test all of them. I hope you can understand. Happy Coding!
@leonpheonix2745
@leonpheonix2745 10 месяцев назад
When i'm defining current_dir i'm getting an error "cwd() takes 1 positional arguments bur 2 were given"
@CodingIsFun
@CodingIsFun 10 месяцев назад
Thanks for watching. Please clone the GitHub repo and try again. Thanks!
@ibrahimsaiusman6115
@ibrahimsaiusman6115 7 месяцев назад
Greetings I have tons of files to process and I need to merge daily data files to monthly. Also, each file contains headings (55 lines) and the main body (343 lines). please assist. NB: the file extension is .trop
@CodingIsFun
@CodingIsFun 7 месяцев назад
Thanks so much for watching the video and leaving a comment! Your request is definitely noted. However, I get a ton of requests for custom solutions and, as much as I'd love to help everyone out, I just don't have the time in my schedule to develop and test all of them. I hope you can understand. Happy Coding!
@zhecao6586
@zhecao6586 Год назад
Hi, it is very helpful. I have an issue when I tried to do this. I got with xw.App(visible=False) as app: AttributeError: __enter__ . Do you know why it happens. Thank you.
@CodingIsFun
@CodingIsFun Год назад
Thanks for watching. Please use the latest version of xlwings. If that does not resolve the issue, please try another Python version. In the video I have used 3.8.5
@udayrajvadeghar8555
@udayrajvadeghar8555 11 месяцев назад
f you are unable to do . open the terminal in the directory and run this command . "Get-ChildItem -Filter *.txt | Rename-Item -NewName { $_.Name -replace '\.txt$', '.csv' }" here i am converting txt files to csv files , replace on that you want to convert .
@CodingIsFun
@CodingIsFun 11 месяцев назад
Thanks for watching. I think the use case was slightly more complicated 😅, but thanks for the info! I appreciate it! 👍
Далее
How to Convert CSV to Excel with Python and Pandas?
10:43
How To Merge Text Files in Python
6:19
Просмотров 3 тыс.
😭Телеграм УДАЛЯЮТ❌
00:50
Просмотров 102 тыс.
Python Pandas Tutorial 4: Read Write Excel CSV File
27:03
If __name__ == "__main__" for Python Developers
8:47
Просмотров 398 тыс.
Scripting with Python - Modify a TXT file
19:00
Просмотров 50 тыс.
How to Convert PDF to Excel
5:17
Просмотров 1,6 млн
😭Телеграм УДАЛЯЮТ❌
00:50
Просмотров 102 тыс.