Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread Sivaram Neelakantan
On Sat, Oct 19 2013,Manish Tripathi wrote: > I am trying to import a csv file in Pandas but it throws an error. The > format of the data when opened in notepad++ is as follows with first row > being column names: you could try the following newsgroup or mailing list for more specialised help.

Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread Sivaram Neelakantan
On Sun, Oct 20 2013,Mark Lawrence wrote: > On 19/10/2013 23:40, Alan Gauld wrote: > >> This is the second time I've seen pandas mentioned recedntly I really >> must go and look it up to find out what it is... > > Just started out myself at http://pandas.pydata.org/ and at first > glance it seems q

Re: [Tutor] string list in alphabetical!

2013-10-20 Thread Mark Lawrence
On 21/10/2013 01:16, Sammy Cornet wrote: Hello! I'm using python 2.7.5 version and I'm trying to write a program related to a file named unsorted_fruits.txt contains a list of 26 fruits, each one with a name that begins with a different letter of the alphabet. My program's goal is to read in the

Re: [Tutor] string list in alphabetical!

2013-10-20 Thread Steven D'Aprano
On Sun, Oct 20, 2013 at 07:16:12PM -0500, Sammy Cornet wrote: > Hello!I'm using python 2.7.5 version and I'm trying to write a program > related to a file named unsorted_fruits.txt contains a list of 26 .^ Here you say the file is called unsorted_frui

[Tutor] string list in alphabetical!

2013-10-20 Thread Sammy Cornet
Hello!I'm using python 2.7.5 version and I'm trying to write a program related to a file named unsorted_fruits.txt contains a list of 26 fruits, each one with a name that begins with a different letter of the alphabet. My program's goal is to read in the fruits from the file unsorted_fruits.txt

[Tutor] Fwd: Re: Passing arguments?

2013-10-20 Thread Ricardo Aráoz
Sorry, I sent this answer to the OP directly and not to the list. Mensaje original Asunto: Re: [Tutor] Passing arguments? Fecha: Sun, 20 Oct 2013 11:25:52 -0300 De: Ricardo Aráoz A: Jenny Allar El 20/10/13 01:20, Jenny Allar escribió: I've written the code

Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread Albert-Jan Roskam
On Sun, 10/20/13, Mark Lawrence wrote: Subject: Re: [Tutor] Reading CSV files in Pandas To: tutor@python.org Date: Sunday, October 20, 2013, 1:16 AM On 19/10/2013 23:40, Alan Gauld wrote: > This is the second time I've seen pandas mentioned recedntly I really > must go and look it up

Re: [Tutor] Passing arguments?

2013-10-20 Thread Alan Gauld
On 20/10/13 05:20, Jenny Allar wrote: I've written the code below the assignment, and I think I have everything covered in terms of asking the user for the information I need and somehow calculating costs, but I'm just ridiculously confused on the order and placement of the functions and componen

Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread John Steedman
I have in front of me a copy an (unread, borrowed) copy of "Python for Data Analysis". Well, on page 104, there is the start of an answer. Pandas : has two useful functions: read_csv and read_table Numpy : see np.loadtxt and np.genfromtxt There is an example for using the first numpy function:

Re: [Tutor] Passing arguments?

2013-10-20 Thread Jugurtha Hadjar
Hello, > the data from the user in main. You must print the name of the product, > the weight and the cost of shipping in a separate function. Your code printed that in main. > print('Product:', product) > > print('Weight:', weight) Also, you have an int(input("weight:")) Weight

Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread Alan Gauld
On 20/10/13 11:30, Matthew Ngaha wrote: Does pandas do the same thing numpy does? Pandas is more about analysis of big data volumes rather than complex calculations. eg statistical analysis and data mining. As such it's closer to R than to numpy in its function, so far as I can tell. (Altho

Re: [Tutor] Auto-response for your message to the "Tutor" mailing list

2013-10-20 Thread Dave Angel
On 20/10/2013 04:34, Dominik George wrote: >> Your message for tutor@python.org, the Python programming tutor list, >> has been received and is being delivered. This automated response is >> sent to those of you new to the Tutor list, to point out a few >> resources that can help with answering y

Re: [Tutor] Passing arguments?

2013-10-20 Thread Dave Angel
On 20/10/2013 00:20, Jenny Allar wrote: Earlier, you have managed to send your emails as text, but this time you blew it and used html. That's probably what makes the code doublespaced in the newsgroup. It also means that most of us see > I've written the code below the assignment, and I think

Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread Mark Lawrence
On 20/10/2013 11:30, Matthew Ngaha wrote: Does pandas do the same thing numpy does? I've never used them and unsure of what they are about. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/ma

Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread Matthew Ngaha
Does pandas do the same thing numpy does? I've never used them and unsure of what they are about. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Passing arguments?

2013-10-20 Thread Mark Lawrence
On 20/10/2013 09:31, Dominik George wrote: Hi, Also, please reformat your code in a readable manner, i.e. remove the many empty lines, reformat function calls according to style guide, etc. Cheers, Nik Not another case of the infamous double spaced google disease? If yes it can be cured by

Re: [Tutor] Auto-response for your message to the "Tutor" mailing list

2013-10-20 Thread Dominik George
> Your message for tutor@python.org, the Python programming tutor list, > has been received and is being delivered. This automated response is > sent to those of you new to the Tutor list, to point out a few > resources that can help with answering your own questions, or improve > the chances of g

Re: [Tutor] Passing arguments?

2013-10-20 Thread Dominik George
Hi, > I've written the code below the assignment, and I think I have everything > covered in terms of asking the user for the information I need and somehow > calculating costs, but I'm just ridiculously confused on the order and > placement of the functions and components of this program- specifi

[Tutor] Passing arguments?

2013-10-20 Thread Jenny Allar
I've written the code below the assignment, and I think I have everything covered in terms of asking the user for the information I need and somehow calculating costs, but I'm just ridiculously confused on the order and placement of the functions and components of this program- specifically the shi

Re: [Tutor] Reading CSV files in Pandas

2013-10-20 Thread Manish Tripathi
Thanks Mark. I have already asked this question on StackOverflow but to no avail. So thought of asking here. On Sun, Oct 20, 2013 at 5:47 AM, Mark Lawrence wrote: > On 19/10/2013 15:29, Manish Tripathi wrote: > > You are far more likely to get a response to the identical question that > you've a