Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~15.1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for 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 directly from and to csv file saved in C:\. The data file is comma …

Member Avatar for vb5prgrmr
0
186
Member Avatar for 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 csv files otherwise it causes execution error? I have …

Member Avatar for jliu66
0
81
Member Avatar for 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 copy it from one PC to another PC? In other words, …

Member Avatar for BearofNH
0
179
Member Avatar for 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 attritutes of objects, it will change other attributes in …

Member Avatar for jliu66
0
202
Member Avatar for 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 how should I fixed? I want to output each object of …

0
51
Member Avatar for 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 thing? Thanks in advance. class person(): def __init__(self): self.name = ' …

Member Avatar for woooee
0
163
Member Avatar for 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 following: reader = csv.reader(open('Indices.csv', 'r'), delimiter = ',') line = …

Member Avatar for BearofNH
0
255
Member Avatar for 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 in advance. Any good reference on this topic? John

Member Avatar for jliu66
0
12K
Member Avatar for 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 avvance. # define an empty calss class temp: pass # copy1 …

Member Avatar for BearofNH
0
89
Member Avatar for 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 to debug. for k in range(1, NoE): for …

Member Avatar for woooee
0
229
Member Avatar for 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 markownikowa 10 teresa parufkowa 90 bogumila pierdawa 40 genowefa tempawa 50 John

Member Avatar for Lardmeister
0
165
Member Avatar for 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 b = 4 5 6 6 7 8 8 9 1 the combined array should be c = 1 …

Member Avatar for jliu66
0
738
Member Avatar for 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 here if Bf have 20 lines of code. How …

Member Avatar for Lardmeister
0
114
Member Avatar for 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 pass the data into 2-D array? …

Member Avatar for paddy3118
0
99