Search Results

Showing results 1 to 30 of 30
Search took 0.01 seconds.
Search: Posts Made By: jliu66
Forum: Python Feb 8th, 2008
Replies: 2
Views: 1,458
Posted By jliu66
Thanks so much.
Forum: Python Feb 7th, 2008
Replies: 2
Views: 1,458
Posted By jliu66
Hi, my friends,

I have a question to ask you. I am dealing with thousands of csv files in one directory. Some of csv files are empty with file size 0. How can I skip those empty files when I open...
Forum: Python Jan 11th, 2008
Replies: 3
Views: 1,685
Posted By jliu66
Thanks so much. It is really very helpful although I will follow your direction to get the point I want to. It is really very important to have some guard to protect my model hebind the scene. Many...
Forum: Python Jan 10th, 2008
Replies: 2
Views: 2,425
Posted By jliu66
Thanks so much for your quick reply. Yes. I need to have 1000+ instances of a class. Also the number of attributes in the class may change so I do not want to make the change in copying the class...
Forum: Python Jan 10th, 2008
Replies: 2
Views: 2,425
Posted By jliu66
Hi, Dear my friends,

I has been using python for a while. But I just realized that when you make a copy of python class, it is copying a link to the class. So when you make the change to the...
Forum: Python Jan 10th, 2008
Replies: 3
Views: 1,685
Posted By jliu66
Hi, Dear my friends,

I have a trick questions to ask you about python scripts for help.

How can I set up a complied python code with a password so that nobody can touch or modify it and even...
Forum: Python Nov 29th, 2007
Replies: 0
Views: 3,185
Posted By jliu66
Hi, My friends,

I have aquestion to ask you. I want to output a list of class objects to a file in csv format.
but last step in writer.writerow does not work. Can you tell me what's wrong and...
Forum: Python Nov 6th, 2007
Replies: 4
Views: 867
Posted By jliu66
Hi, Jeff,

That's the nice code. Thanks so much.
But my problem is that I have thousands people of a large list of class objects to assign the values with about 30 attributes in the class. I can...
Forum: Python Nov 5th, 2007
Replies: 4
Views: 867
Posted By jliu66
Hi,

I have a question regard to assign the values to each memebrs of the class objects because I have a large list of class objects. Can I do the following? If not, how can I achieve the same...
Forum: Python Oct 29th, 2007
Replies: 6
Views: 4,170
Posted By jliu66
Hi, Thanks.

your code works in Pythonwin but fails when I put it in the script in easyEclipse for python:
The code is:
i =0
for row in reader:
i = i + 1
tradingDate,...
Forum: Python Oct 29th, 2007
Replies: 6
Views: 4,170
Posted By jliu66
One more question: how can I convert a list of string, like here marketIndex to float?
Similarly, how can I concert a matrix of string into float type of data?

Thanks.

John
Forum: Python Oct 29th, 2007
Replies: 6
Views: 4,170
Posted By jliu66
Thanks so much. Yes. that works fine.

John
Forum: Python Oct 28th, 2007
Replies: 6
Views: 4,170
Posted By jliu66
Hi, my friends,

I try to use csv module to input data in csv format but split does not work. Could you please help? The input data is 2 column data separated in comma as csv format.

The code is...
Forum: Python Oct 28th, 2007
Replies: 4
Views: 2,309
Posted By jliu66
Forum: Python Oct 24th, 2007
Replies: 4
Views: 2,309
Posted By jliu66
Here is the code:

def ols(x, y):

class output:
pass

results = output()

results.method = 'ols'
Forum: Python Oct 24th, 2007
Replies: 4
Views: 2,309
Posted By jliu66
Hi,

I have a question ask you or expert. Can python's function return a class at the end of function definition. The class have only a set of data members like struct in C. Please help and thanks...
Forum: Python Oct 22nd, 2007
Replies: 3
Views: 1,388
Posted By jliu66
I use SPE IDE 0.8.3. I tried several times on indentation. It looks like there is no indentation mistake. But when I run the script. It always points to last line with the syntax error: can't assign...
Forum: Python Oct 22nd, 2007
Replies: 3
Views: 1,388
Posted By jliu66
Hi, Ny friends,

This is my 2nd week to learn and wite codes in python. I encounter a debug error in the last line of code or SizeDiffE(k) = j
. I could not figure out? I am using SPE IDE 0.8.3...
Forum: Python Oct 22nd, 2007
Replies: 3
Views: 3,051
Posted By jliu66
Thanks so much. That's really neat code. Appreciated.

John
Forum: Python Oct 21st, 2007
Replies: 3
Views: 3,051
Posted By jliu66
Hi,

I am newie to python.

How I combine 2 multi-dimension array into one by column?
here is an exmaple:

a = 1 2 3
2 3 4
3 4 5
Forum: Python Oct 20th, 2007
Replies: 1
Views: 1,120
Posted By jliu66
Hi, my friends,

I am new to python. I have a question to ask you a empty class with a set of data memebers. The data members could be array. what is wrong with the following code?
Thanks in...
Forum: Python Oct 19th, 2007
Replies: 8
Views: 1,942
Posted By jliu66
That's 5 by 3 array separated by space. How can I sort it by any columns? Thanks.
Forum: Python Oct 19th, 2007
Replies: 8
Views: 1,942
Posted By jliu66
Hi,
Could u please help me to sort this 3 dimension data in python? How can sort this 5 by 3 array with 1st column or last column? Thanks a lot.

marek brutalski 20
zenia ...
Forum: Python Oct 19th, 2007
Replies: 1
Views: 5,489
Posted By jliu66
Hi, my friends,

I am new to python. I am trying to user csv module to read and write the data in csv. Here is data format. # of columns in each row are the same. 1st row is a header. how I can...
Forum: Python Oct 19th, 2007
Replies: 5
Views: 2,537
Posted By jliu66
Thanks a lot. But this is kind of risky for a large project as you may have many loop and if to have indentations.

John
Forum: Python Oct 18th, 2007
Replies: 5
Views: 2,537
Posted By jliu66
Hi, My friends,

I am new to python. I try to figure out how python knows the end of loop or the end of a block of codes in while... else code
Here is the example:
while E:
Bt
else:
Bf
Forum: Visual Basic 4 / 5 / 6 Oct 18th, 2007
Replies: 8
Views: 5,540
Posted By jliu66
Thanks so much. It is very helpful. I will try out and thanks again.

John
Forum: Visual Basic 4 / 5 / 6 Oct 15th, 2007
Replies: 8
Views: 5,540
Posted By jliu66
Well, the data is from csv file in the directory for import. for Export, it will save to a CSV file when the calculation is done. The size of records is 20,000 by 20,000. It takes a lot of computer...
Forum: Visual Basic 4 / 5 / 6 Oct 15th, 2007
Replies: 8
Views: 5,540
Posted By jliu66
Well, the data is from csv file in the directory for import. for Export, it will save to a CSV file when the calculation is done. The size of records is 20,000 by 20,000. It takes a lot of computer...
Forum: Visual Basic 4 / 5 / 6 Oct 13th, 2007
Replies: 8
Views: 5,540
Posted By jliu66
Dear my friends,

I am working a project to import and export a large amount data. Right now I save the data in spreadsheet but time consuming. I want to import and export those mixed data...
Showing results 1 to 30 of 30

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC