Hi,
On Wed, Mar 30, 2011 at 11:32 AM, Pauli Virtanen wrote:
> On Wed, 30 Mar 2011 10:37:45 -0700, Matthew Brett wrote:
> [clip]
>> imagine I'm working with a non-latin default encoding, and I've opened a
>> file:
>>
>> fobj = open('my_nonlatin.txt', 'rt')
>>
>> in python 3.2. That might contain
On Wed, 30 Mar 2011 10:37:45 -0700, Matthew Brett wrote:
[clip]
> imagine I'm working with a non-latin default encoding, and I've opened a
> file:
>
> fobj = open('my_nonlatin.txt', 'rt')
>
> in python 3.2. That might contain numbers and non-latin text. I can't
> pass that into 'genfromtxt' be
On Wed, Mar 30, 2011 at 7:37 PM, Matthew Brett wrote:
> Hi,
>
> On Wed, Mar 30, 2011 at 10:02 AM, Ralf Gommers
> wrote:
>> On Wed, Mar 30, 2011 at 3:39 AM, Matthew Brett
>> wrote:
>>> Hi,
>>>
>>> On Mon, Mar 28, 2011 at 11:29 PM, wrote:
numpy/lib/test_io.py only uses StringIO in the t
Hi,
On Wed, Mar 30, 2011 at 10:02 AM, Ralf Gommers
wrote:
> On Wed, Mar 30, 2011 at 3:39 AM, Matthew Brett
> wrote:
>> Hi,
>>
>> On Mon, Mar 28, 2011 at 11:29 PM, wrote:
>>> numpy/lib/test_io.py only uses StringIO in the test, no actual csv file
>>>
>>> If I give the filename than I get a
On Wed, Mar 30, 2011 at 3:39 AM, Matthew Brett wrote:
> Hi,
>
> On Mon, Mar 28, 2011 at 11:29 PM, wrote:
>> numpy/lib/test_io.py only uses StringIO in the test, no actual csv file
>>
>> If I give the filename than I get a TypeError: Can't convert 'bytes'
>> object to str implicitly
>>
>>
>>
Hi,
On Mon, Mar 28, 2011 at 11:29 PM, wrote:
> numpy/lib/test_io.py only uses StringIO in the test, no actual csv file
>
> If I give the filename than I get a TypeError: Can't convert 'bytes'
> object to str implicitly
>
>
> from the statsmodels mailing list example
>
> data = recfromtxt
numpy/lib/test_io.pyonly uses StringIO in the test, no actual csv file
If I give the filename than I get a TypeError: Can't convert 'bytes'
object to str implicitly
from the statsmodels mailing list example
data = recfromtxt(open('./star98.csv', "U"), delimiter=",", skip_header=1,
>>