Re: How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread A S
On Monday, 23 March 2020 01:58:38 UTC+8, Beverly Pope wrote: > > On Mar 22, 2020, at 9:47 AM, A S wrote: > > > > I can't seem to paste pictures into this discussion so please see both my > > current and desired Excel output here: > > > > https://st

How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread A S
I have contract clauses in Words (.docx) format that needs to be frequently copy and pasted into Excel (.xlsx) to be sent to the third party. The clauses are often updated hence there's always a need to copy and paste these clauses over. I only need to copy and paste all the paragraphs and image

Re: Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
On Thursday, 12 December 2019 04:55:46 UTC+8, Joel Goldstick wrote: > On Wed, Dec 11, 2019 at 1:31 PM Ben Bacarisse wrote: > > > > A S writes: > > > > > I would like to extract all words within specific keywords in a .txt > > > file. For the keywords, t

Re: Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
On Thursday, 12 December 2019 02:28:09 UTC+8, Ben Bacarisse wrote: > A S writes: > > > I would like to extract all words within specific keywords in a .txt > > file. For the keywords, there is a starting keyword of "PROC SQL;" (I > > need this to be case i

Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
I would like to extract all words within specific keywords in a .txt file. For the keywords, there is a starting keyword of "PROC SQL;" (I need this to be case insensitive) and the ending keyword could be either "RUN;", "quit;" or "QUIT;". This is my sample .txt file. Thus far, this is my code:

Re: Extract sentences in nested parentheses using Python

2019-12-05 Thread A S
On Tuesday, 3 December 2019 23:48:21 UTC+8, Peter Otten wrote: > A S wrote: > > > On Tuesday, 3 December 2019 01:01:25 UTC+8, Peter Otten wrote: > >> A S wrote: > >> > >> I think I've seen this question before ;) > >> > >> > I a

Re: Extract sentences in nested parentheses using Python

2019-12-05 Thread A S
On Tuesday, 3 December 2019 06:22:52 UTC+8, DL Neil wrote: > On 3/12/19 6:00 AM, Peter Otten wrote: > > A S wrote: > > I think I've seen this question before ;) > > In addition to 'other reasons' for @Peter's comment, it is a common > ComSc worked

Re: Extract sentences in nested parentheses using Python

2019-12-03 Thread A S
On Tuesday, 3 December 2019 01:01:25 UTC+8, Peter Otten wrote: > A S wrote: > > I think I've seen this question before ;) > > > I am trying to extract all strings in nested parentheses (along with the > > parentheses itself) in my .txt file. Please see the sample .

Extract sentences in nested parentheses using Python

2019-12-02 Thread A S
I am trying to extract all strings in nested parentheses (along with the parentheses itself) in my .txt file. Please see the sample .txt file that I have used in this example here: (https://drive.google.com/open?id=1UKc0ZgY9Fsz5O1rSeBCLqt5dwZkMaQgr). I have tried and done up three different cod

Finding lines in .txt file that contain keywords from two different set()

2019-09-08 Thread A S
My problem is seemingly profound but I hope to make it sound as simplified as possible.Let me unpack the details..: 1. I have one folder of Excel (.xlsx) files that serve as a data dictionary. -In Cell A1, the data source name is written in between brackets -In Cols C:D, it contains the dat

How to only read words within brackets/ parentheses (in .txt file) using Python

2019-09-04 Thread A S
I understand that reading lines in .txt files would look something like this in Python: with open('filename','r') as fd: lines = fd.readlines() However, how do I run my code to only read the words in my .txt files that are within each balanced parenthesis? I am not sure how to go about it

Calling a matlab script from python

2007-09-05 Thread n o s p a m p l e a s e
Suppose I have a matlab script mymatlab.m. How can I call this script from a python script? Thanx/NSP -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a dos batch file from python

2007-09-05 Thread n o s p a m p l e a s e
On Sep 4, 5:01 pm, [EMAIL PROTECTED] wrote: > On Sep 4, 8:42 am, n o s p a m p l e a s e <[EMAIL PROTECTED]> > wrote: > > > Suppose I have a batch file called mybatch.bat and I want to run it > > from a python script. How can I call this batch file in python scri

Calling a dos batch file from python

2007-09-04 Thread n o s p a m p l e a s e
Suppose I have a batch file called mybatch.bat and I want to run it from a python script. How can I call this batch file in python script? Thanx/NSP -- http://mail.python.org/mailman/listinfo/python-list