[Tutor] help with Pandas

2018-05-22 Thread Glenn Schultz
All, I have a dataframe with the column 'loanage' and a function to transform loanage, which will be part of a pipline, I am trying to apply the function to the data frame as follows: df['loanage'].apply(myfunction(x = 2, y = 10, z = 10, df['loanage]), axis = 0) I get value error: The truth i

[Tutor] Calling class from another class

2018-05-22 Thread aishwarya selvaraj
Dear all, I have created 2 classes in 2 separate files.File 1 named atcore_py.pyx with class andorCameraSDK3, and file 2 with name AndorCameraGUI making use of TKinter. I was able to import andorCameraSDK3 into AndorCameraGUI, but I was not able to do the other way around, as I need to call th

[Tutor] os.walk() with multiple paths

2018-05-22 Thread Pi
Hello Tutor, I'm stuck and i really need help. Google and I can't find answer for my problem. I've wrote app searching through directories database files. It works fine, but only for one path. And I need to use more than one path. This is my code: import os files = [] def find_db(paths):

Re: [Tutor] Calling class from another class

2018-05-22 Thread Alan Gauld via Tutor
On 22/05/18 11:16, aishwarya selvaraj wrote: > I'm attaching both the files along with this email. It would be great if > someone could help me out here. Thanks in advance I don't see the attachments, even though they may just be text the server probably sees them as potentially executable and st

Re: [Tutor] help with Pandas

2018-05-22 Thread Alan Gauld via Tutor
On 22/05/18 18:13, Glenn Schultz wrote: Cavbeat: I'm no dataframe expert so I'm going on general principles here... > I am trying to apply the function to the data frame as follows: > > df['loanage'].apply(myfunction(x = 2, y = 10, z = 10, df['loanage]), axis = 0) This looks wrong on several

Re: [Tutor] os.walk() with multiple paths

2018-05-22 Thread Alan Gauld via Tutor
On 22/05/18 20:06, Pi wrote: > works fine, but only for one path. And I need to use more than one path. > With one path given works great: > > >>> find_db("/dbbs") > ['april.db, /dbbs/analysis/april.db', 'important.sqlite, > /dbbs/temp/important.sqlite', 'march.db, /dbbs/analysis/march.db',