Re: [Tutor] anomaly

2018-04-20 Thread Alan Gauld via Tutor
On 20/04/18 05:53, D.V.N.Sarma డి.వి.ఎన్.శర్మ wrote: > I have a situation in which the same code gives an error in idle but works > in qtconsole > regards, > > *​in idle* > v = np.zeros(len(x)) > > for i in range(len(x)): > if x[i] < 1.0: > v[i] = 0 You don't give us any clue to what

Re: [Tutor] anomaly

2018-04-20 Thread Peter Otten
Alan Gauld via Tutor wrote: > On 20/04/18 05:53, D.V.N.Sarma డి.వి.ఎన్.శర్మ wrote: >> I have a situation in which the same code gives an error in idle but >> works in qtconsole >> regards, >> >> *​in idle* >> v = np.zeros(len(x)) >> >> for i in range(len(x)): >> if x[i] < 1.0: >> v[i

Re: [Tutor] File handling Tab separated files

2018-04-20 Thread Alan Gauld via Tutor
Use Reply-All or Reply-List to include the mailing list in replies. On 20/04/18 09:10, Niharika Jakhar wrote: > Hi > > I want to store the data of file into a data structure which has 11 > objects per line , something like this: > 2354   somethin2 23nothing       23214. > > > so I

Re: [Tutor] Code to download credit card statement and add to DB

2018-04-20 Thread Kuan Lu
Hello Mr. Tutor: I constructed a pieced of code utilizing requests and pyodbc to download creditcard statement transactions and insert them into a DB table based on the code published by Louis Millette here: https://github.com/louismillette/Banking/tree/master. Now I am a total newbie to Pytho

Re: [Tutor] Code to download credit card statement and add to DB

2018-04-20 Thread Kuan Lu
Hello Mr. Tutor: I constructed a pieced of code utilizing requests and pyodbc to download creditcard statement transactions and insert them into a DB table based on the code published by Louis Millette here: https://github.com/louismillette/Banking/tree/master. Now I am a total newbie to Pytho