tagged [python-2.x]
How to import a csv-file into a data array?
How to import a csv-file into a data array? I have a line of code in a script that imports data from a text file with lots of spaces between values into an array for use later. ``` textfile = open('fi...
- Modified
- 7 Oct at 01:49
Python (2.x) list / sublist selection -1 weirdness
Python (2.x) list / sublist selection -1 weirdness So I've been playing around with python and noticed something that seems a bit odd. The semantics of `-1` in selecting from a list don't seem to be c...
- Modified
- 23 Nov at 08:26
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 20: ordinal not in range(128) I'm having problems dealing with unicode characters from text fetched from different web page...
- Modified
- 22 Mar at 13:59