Re: [Tutor] Doubt

2019-01-07 Thread Steven D'Aprano
On Mon, Jan 07, 2019 at 09:59:31PM +0530, Amit Yadav wrote: > How can simply typing > > print "hello world" > > work? > Like without including any header file or import statements how can it work. Why shouldn't it work? Python is not C and doesn't use header files. In Python, the interpreter k

Re: [Tutor] Doubt

2019-01-07 Thread Peter Otten
Amit Yadav wrote: > How can simply typing > > print "hello world" > > work? > Like without including any header file or import statements how can it > work. In Python 2 print is part of the syntax that the compiler knows, just like int or for (... ) {} in C. In Python 3 print is just a na

Re: [Tutor] Doubt

2019-01-07 Thread Mats Wichmann
On 1/7/19 9:29 AM, Amit Yadav wrote: > How can simply typing > > print "hello world" > > work? > Like without including any header file or import statements how can it work. because you're using a function (or in your case - which looks like Python 2.x because it is not written as a function ca

[Tutor] Doubt

2019-01-07 Thread Amit Yadav
How can simply typing print "hello world" work? Like without including any header file or import statements how can it work.

[Tutor] Fwd: Data pattern query.

2019-01-07 Thread Alan Gauld via Tutor
Sending to list. Please use reply-all when responding to the list. Original Message Subject: RE: [Tutor] Data pattern query. From: mhysnm1...@gmail.com Sent: Monday, 7 January 2019 11:58 To: 'Alan Gauld' CC: Alan, Thanks for responding. I am storing the spreadsheet into

Re: [Tutor] Python installtion

2019-01-07 Thread Oscar Benjamin
On Mon, 7 Jan 2019 at 11:10, mousumi sahu wrote: > > Dear Sir, > I am trying to install python 2.7.10 on HPC. Python 2.6 has already been > install on root. I do not have root authority. Please suggest me how can I > do this. Does HPC stand for High-Performance Computing? Are you trying to set up

Re: [Tutor] Python installtion

2019-01-07 Thread Steven D'Aprano
On Mon, Jan 07, 2019 at 03:36:01PM +0530, mousumi sahu wrote: > Dear Sir, > I am trying to install python 2.7.10 on HPC. Python 2.6 has already been > install on root. I do not have root authority. Please suggest me how can I > do this. What's HPC? If you don't have root permission, do you have p

[Tutor] Python installtion

2019-01-07 Thread mousumi sahu
Dear Sir, I am trying to install python 2.7.10 on HPC. Python 2.6 has already been install on root. I do not have root authority. Please suggest me how can I do this. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: h

Re: [Tutor] Bulk update to a SQL Server table

2019-01-07 Thread Alan Gauld via Tutor
On 07/01/2019 02:15, ram wrote: > I load these 7000+ records into a Pandas DataFrame and update a subset of > these records. > > What's the optimal way to update this subset of records to SQL table? First 7000 records is not a lot so performance shouldn't be a big issue even if you do update the

Re: [Tutor] Data pattern query.

2019-01-07 Thread Alan Gauld via Tutor
On 07/01/2019 02:38, mhysnm1...@gmail.com wrote: > All the descriptions of the transactions are > in a single column. I am trying to work out the > easiest method of identifying the same pattern > of text in the fields. What does a singe column mean? That presumably is how it appears in the s

[Tutor] Bulk update to a SQL Server table

2019-01-07 Thread ram
Hi All, I have 7000+ records in a SQL Server table with 3 columns, which uniquely identify each record (I didn't define them as composite primary key). I load these 7000+ records into a Pandas DataFrame and update a subset of these records. What's the optimal way to update this subset of records

[Tutor] Data pattern query.

2019-01-07 Thread mhysnm1964
All, I am currently writing a Python program to identify common text patterns in a excel spreadsheet which I have imported using openpyxl. All the descriptions of the transactions are in a single column. I am trying to work out the easiest method of identifying the same pattern of text in th