...

View Full Version : python: obtain data from .csv file



hm25
01-24-2011, 04:52 AM
How can I get data from file outside of the python program?
How can I read the data files and split each line of the data file it?
thanks

oesxyl
01-24-2011, 05:26 AM
How can I get data from file outside of the python program?
How can I read the data files and split each line of the data file it?
thanks

http://docs.python.org/release/2.6.6/library/csv.html

best regards

hm25
01-24-2011, 06:51 AM
http://docs.python.org/release/2.6.6/library/csv.html

best regards

it is really hard to understand it.


is there any easy way to do it

thanks

oesxyl
01-24-2011, 07:35 AM
it is really hard to understand it.


is there any easy way to do it

thanks
what is so hard?

best regards

hm25
01-24-2011, 10:18 AM
what is so hard?

best regards

this is first time to use programming SO.
I have the coding in python but I need to call it from .CSV file to do the function ?

oesxyl
01-24-2011, 11:00 AM
this is first time to use programming SO.
I have the coding in python but I need to call it from .CSV file to do the function ?
i'm sorry but i don't understand what do you ask.

learn basic things first and take it step by step, you can't jump to this if you don't understand the rest and is no magic way, only work.

check to see what version of python do you run first then go to the tutorial for your version( there are differences between version).

http://www.python.org/doc/versions/

write and run the examples, write your own code based on what you learn, post specific question here when you have problems.

best regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum