RUVIDEO
Поделитесь видео 🙏

Auto populate a Word document with data from CSV | Python Code смотреть онлайн

Using docxtpl to create word/docx files based on a template docx file.
Python then creates new word/docx files, inserting data, where there is a match between the template and the CSV.
One Docx per row in the CSV.

If you want a fast VPS server with Python installed check out :
https://webdock.io/en?maff=wdaff--170

I show an example with 6 rows in the CSV, making 6 Docx files, each file has unique content from the CSV.

After a request from a subscriber, I have now added the code to make the filenames based upon values form the CSV.

Modify the numerical filenames system from 1,2,3,4 etc... enumerated sequence to values from 'title' column.

⚪ My subscriber actually sent me the solution before I had chance to work on this, so credit due to suhas g for the following solution:

✅ Using pandas dataframe, df.loc, it is fairly trivial, just select the row/column with [:, 'title']

This is something I didn't add initially as there was a requirement to manually rename the files once I had raised a change reference in another laborious system!

I hope this is useful?

Credit : Eric Lapouyade https://docxtpl.readthedocs.io/en/latest/ #docxtpl


All my GitHub Code :

⚪ https://github.com/RGGH/pydoc

⚪ If you want a fast VPS server with Python installed check out :
https://webdock.io/en?maff=wdaff--170

CSV Specific code :
⚪ https://github.com/RGGH/pydoc/tree/master/conditional

☕️☕️☕️ Buy Dr Pi a Coffee...or Tea! : https://www.buymeacoffee.com/DrPi ☕️☕️☕️

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Auto populate a Word document with data from CSV | Python Code» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.