Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
1 answer
54 views

How exactly to understand documentations without any explanation in Airflow?

I try to understand The PostgresHook in Airflow. Here is the documentation: https://airflow.apache.org/docs/apache-airflow/1.10.6/_api/airflow/hooks/postgres_hook/index.html Now for example if I wanna ...
Super_Programmer's user avatar
0 votes
1 answer
683 views

cannot import name 'open_filename' from 'pdfminer.utils' error in loader.load() call

I am importing UnstructuredPDFLoader from langchain.document_loaders and trying to load a pdf file using the following command. from langchain.document_loaders import UnstructuredPDFLoader loader = ...
gopakumar sivanpillai's user avatar
1 vote
1 answer
264 views

How to automate word document from Json data using python

I have a JSON file. How can I create a word document from JSON data. Using templates, I can only fill in one variable. How do I create dynamic word template based on number of values inside JSON list? ...
Kitty's user avatar
  • 167
0 votes
2 answers
72 views

Issue while concatenating 2 docx files

I am trying to create a combination docx file that will be the concatenation of 2 docx files. I have the following python code: from docx import Document files = ['Doc2.docx', 'Doc3.docx'] def ...
Roffy's user avatar
  • 33
-1 votes
1 answer
112 views

Why is it possible to write to first row of .ods document by python but not to others?

I would like to open .ods table file and write new values into first available cell. Only to first three rows. But this code just write it there always again. There is not data save. So how to do it? ...
Mirek's user avatar
  • 31
1 vote
1 answer
646 views

Extracting numbered lists from docx documents as they appear in the document (python 3.X)

I have .docx documents that I need to parse, extracting numbered lists as they appear in the document. For example: However, different approaches have not resulted in anything. What I've tried so far:...
Dion's user avatar
  • 232
0 votes
2 answers
110 views

How to make the tg bot send the document that the user sent back to the user?

In this block of code: @bot.message_handler(content_types=["document"]) def sending_document(message): if ".docx" in message.document.file_name: bot.send_document(...
George's user avatar
  • 3
0 votes
2 answers
2k views

Highlight hyperlinks using python docx

This is my code I am trying to highlight a hyperlink in word document using python docx library. But it is not recognising the hyperlinks. Can someone please help me with the code for this. I have ...
Harshitha S's user avatar
1 vote
0 answers
350 views

Check if Document class has empty pageContent in python from json file and delete empty contents

I am using langchain's Document to read in a json file line by line using the following code but the resulting output has a few elements with blank pagecontent (https://js.langchain.com/docs/modules/...
AAA's user avatar
  • 392
1 vote
0 answers
178 views

Multiple layer pdf export from matplotlib plot

I have a problem with graphs that has much more lines than one, but they all has to be on one graph(they are measured together). As a result i have to create multiple layer pdf so that person that ...
Ilya Chaban's user avatar
0 votes
0 answers
143 views

Splitting word file using regex python

I am trying to split word files (.doc and .docx) into multiple word (.doc)or text (txt) files - whichever is easier to split into. Each .doc or .docx file has at least one contract number, identified ...
Pepa's user avatar
  • 159
0 votes
1 answer
270 views

Script to copy documents and paste them into another folder by name

I need to write a python script, so that giving a list of document names, it finds them in subfolders of a path, copy them and paste them in another folder. The problem is that I need the program to ...
Pablo Ariza Suárez's user avatar
0 votes
1 answer
1k views

How to read the table from the word document and make proper dataframe structure?

I have table in word document in unstructured format. I need to read the table start from 3 row and make the proper dataframe. Expected output : Rows start day1 day2 day3 day4 day5 day6 ...
Dev's user avatar
  • 387
1 vote
0 answers
275 views

Python file is not getting document in doxygen

I am trying to document my Python code using doxygen but some files are there which doesn't have python class structure they just have some python functions, so that .py files is not getting ...
Digital_AI's user avatar
0 votes
0 answers
12 views

how to submit to firestore a document that in the name of the document there is a "/" in python [duplicate]

when i write to firestore only a name like: 'name' it adds that document but if i write na/me insted it will give me this error: ValueError("A document must have an even number of path elements&...
Noam loev's user avatar

15 30 50 per page
1
2 3 4 5
9