On 14Jan2019 09:29, mhysnm1...@gmail.com wrote:
Once again thanks for all the suggestions. It was the input data after
all. As I am importing three sheets into python. One of the sheets had
one less column.
Semantic nit: "fewer". "less" is for continuous values.
I've had to deal with loosely
Peter,
Thanks for the code for a custom key. That will come in handy later down the
track.
-Original Message-
From: Tutor On Behalf Of
Peter Otten
Sent: Sunday, 13 January 2019 10:00 PM
To: tutor@python.org
Subject: Re: [Tutor] Debugging a sort error.
mhysnm1...@gmail.com wrote
: Stephen Nelson-Smith
Sent: Monday, 14 January 2019 1:15 AM
To: mhysnm1...@gmail.com
Cc: Python Tutor mailing list
Subject: Re: [Tutor] Debugging a sort error.
Hi,
On Sun, Jan 13, 2019 at 8:34 AM wrote:
> description.sort()
> TypeError: unorderable types: float() < str()
So, fairly
o: mhysnm1...@gmail.com
Cc: Tutor@python.org
Subject: Re: [Tutor] Debugging a sort error.
Discussion inline below.
On 13Jan2019 13:16, mhysnm1...@gmail.com wrote:
>I am hoping someone can help with the below error using Python3.5 in
>the Windows 10 bash environment. I found the below link which
Hi,
On Sun, Jan 13, 2019 at 8:34 AM wrote:
> description.sort()
> TypeError: unorderable types: float() < str()
So, fairly obviously, we can't test whether a float is less than a
string. Any more than we can tell if a grapefruit is faster than a
cheetah. So there must be items in description
mhysnm1...@gmail.com wrote:
> Issue, following error is generated after trying to sort a list of
> strings.
>
> description.sort()
> TypeError: unorderable types: float() < str()
Consider
>>> descriptions = ["foo", "bar", 123, 3.14, 42, 200.1, "0"]
>>> sorted(descriptions)
Traceback (most recen
On Sun, Jan 13, 2019 at 01:16:10PM +1100, mhysnm1...@gmail.com wrote:
> Issue, following error is generated after trying to sort a list of strings.
>
> description.sort()
> TypeError: unorderable types: float() < str()
That tells you that you don't have a list of strings. You have a list of
str
Discussion inline below.
On 13Jan2019 13:16, mhysnm1...@gmail.com wrote:
I am hoping someone can help with the below error using Python3.5 in
the Windows 10 bash environment. I found the below link which I am not sure if
this is related to the issue or not. As I don't fully understand the answ
On 13/01/2019 02:16, mhysnm1...@gmail.com wrote:
> Issue, following error is generated after trying to sort a list of strings.
>
> description.sort()
> TypeError: unorderable types: float() < str()
Please send the complete error message not just the
last line summary. There is a lot of potentia
Hello everyone.
I am hoping someone can help with the below error using Python3.5 in the
Windows 10 bash environment. I found the below link which I am not sure if
this is related to the issue or not. As I don't fully understand the answer.
https://github.com/SethMMorton/natsort/issues/7
I
10 matches
Mail list logo