Re: [Tutor] Change datatype for specific columns in an 2D array & computing the mean

2016-01-26 Thread Ek Esawi
Thank you all for your patience and dedication to this noble effort-the list. I actually completed my project using Excel and python; unfortunately my python code is not a python-like at all b/c I used way too many loops and if statements. Plus I really want to learn python b/c I am a decent progra

Re: [Tutor] Change datatype for specific columns in an 2D array & computing the mean

2016-01-26 Thread Oscar Benjamin
On 26 January 2016 at 03:07, Ek Esawi wrote: > > Here is a copy of my code and the csv file. > ++ csv file++ > > AA > > BB > > CC This doesn't look like a csv file. Is that what the actual contents of the csv file looks like if you open it in a *text editor*? If this was a csv file I'd expect

Re: [Tutor] Why is an OrderedDict not sliceable?

2016-01-26 Thread Steven D'Aprano
On Sun, Jan 24, 2016 at 07:47:47PM +, Albert-Jan Roskam wrote: > > You appear to be confusing ordered and sorted. > > You are correct. Is there a difference in the way those terms are > used colloquially vs. in the field of Computer Science (Note: English > is not my mother tongue)? In

[Tutor] Help!

2016-01-26 Thread Chelsea G
Hi, I am working on a python script to automate reporting. And I am working on creating a keyword search. For example, if I want to search for the word Tool in the value and see what keys are associated with that. So say the value I have to search is Tool World and I want to know what key is associ

[Tutor] help!

2016-01-26 Thread Chelsea G
Hi, I am working on a python script to automate reporting. And I am working on creating a keyword search. For example, if I want to search for the word Tool in the value and see what keys are associated with that. So say the value I have to search is Tool World and I want to know what key is associ

Re: [Tutor] Change datatype for specific columns in an 2D array & computing the mean

2016-01-26 Thread Ek Esawi
Sorry! but it's a csv file. I just copied it directly from an opened csv file in excel. And you're correct it looks like what you wrote. EKE ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mai

Re: [Tutor] help!

2016-01-26 Thread Joel Goldstick
On Tue, Jan 26, 2016 at 1:05 PM, Chelsea G wrote: > Hi, > I am working on a python script to automate reporting. And I am working on > creating a keyword search. For example, if I want to search for the word > Tool in the value and see what keys are associated with that. So say the > value I have

Re: [Tutor] help!

2016-01-26 Thread Alan Gauld
On 26/01/16 18:05, Chelsea G wrote: > creating a keyword search. For example, if I want to search for the word > Tool in the value and see what keys are associated with that. So say the > value I have to search is Tool World and I want to know what key is > associated with Tool World I search Tool

Re: [Tutor] Change datatype for specific columns in an 2D array & computing the mean

2016-01-26 Thread Oscar Benjamin
On 26 Jan 2016 19:32, "Ek Esawi" wrote: > > Sorry! but it's a csv file. I just copied it directly from an opened csv > file in excel. And you're correct it looks like what you wrote. EKE Can you show exactly how it looks? I.e. open it in a text editor and paste the first say 20 lines here. -- Os

[Tutor] Help

2016-01-26 Thread Chelsea G
Hi, I am working on a python script to automate reporting. And I am working on creating a keyword search. For example, if I want to search for the word Tool in the value and see what keys are associated with that. So say the value I have to search is Tool World and I want to know what key is associ

Re: [Tutor] Help

2016-01-26 Thread Alan Gauld
On 26/01/16 20:57, Chelsea G wrote: > ...I have the basic code for it... Sorry, when I said paste it in the message I should have also pointed out that you need to ensure the mail tool is sending plain text, otherwise we lose all indentation. But this looks like the same code as before so I'm gue

Re: [Tutor] Help

2016-01-26 Thread boB Stepp
In case you cannot see what we are talking about in how your message is not keeping its proper indentation, go to the Tutor Mail Archive at: https://www.mail-archive.com/tutor@python.org/msg73411.html and perhaps you can better see the difficulty we are having reading your message. boB _