Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75247 > unrolled thread

Best place to find sample data

Started byNicholas Cannon <nicholascannon1@gmail.com>
First post2014-07-26 06:41 -0700
Last post2014-07-26 16:15 -0700
Articles 6 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Best place to find sample data Nicholas Cannon <nicholascannon1@gmail.com> - 2014-07-26 06:41 -0700
    Re: Best place to find sample data Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-07-26 18:57 +0200
      Re: Best place to find sample data memilanuk <memilanuk@gmail.com> - 2014-07-26 10:55 -0700
    Re: Best place to find sample data Denis McMahon <denismfmcmahon@gmail.com> - 2014-07-26 21:28 +0000
    Re: Best place to find sample data Nicholas Cannon <nicholascannon1@gmail.com> - 2014-07-26 16:15 -0700
    Re: Best place to find sample data Nicholas Cannon <nicholascannon1@gmail.com> - 2014-07-26 16:15 -0700

#75247 — Best place to find sample data

FromNicholas Cannon <nicholascannon1@gmail.com>
Date2014-07-26 06:41 -0700
SubjectBest place to find sample data
Message-ID<c340dd4d-076c-4413-be54-70ec0aa4ae06@googlegroups.com>
Hey I need some sample data to test out and do stuff with. Also I am having strange errors with idle when i load a .txt file read it and then print it, idle crashes well kind of freezes. Not sure what is wrong here. Also I am having troubles with Numpy and its loadtxt function:

ValueError: cannot set an array element with a sequence

So all i need is a good site to download some data from and maybe some fixes for these problems.

[toc] | [next] | [standalone]


#75249

FromIrmen de Jong <irmen.NOSPAM@xs4all.nl>
Date2014-07-26 18:57 +0200
Message-ID<53d3de04$0$2978$e4fe514c@news.xs4all.nl>
In reply to#75247
On 26-7-2014 15:41, Nicholas Cannon wrote:
> Hey I need some sample data to test out and do stuff with. Also I am having strange errors with idle when i load a .txt file read it and then print it, idle crashes well kind of freezes. Not sure what is wrong here. Also I am having troubles with Numpy and its loadtxt function:
> 
> ValueError: cannot set an array element with a sequence
> 
> So all i need is a good site to download some data from and maybe some fixes for these problems.
> 

First hit when googling for 'testdata generator site': http://www.generatedata.com/
The search produces various other useful looking sites.

The numpy one is probably a typo in your code, please show the offending code.

No idea about your idle problem.


Irmen

[toc] | [prev] | [next] | [standalone]


#75250

Frommemilanuk <memilanuk@gmail.com>
Date2014-07-26 10:55 -0700
Message-ID<mailman.12351.1406397333.18130.python-list@python.org>
In reply to#75249
On 07/26/2014 09:57 AM, Irmen de Jong wrote:
> On 26-7-2014 15:41, Nicholas Cannon wrote:
>> Hey I need some sample data to test out and do stuff with. Also I
>> am having strange errors with idle when i load a .txt file read it
>> and then print it, idle crashes well kind of freezes. Not sure what
>> is wrong here. Also I am having troubles with Numpy and its loadtxt
>> function:
>>
>> ValueError: cannot set an array element with a sequence
>>
>> So all i need is a good site to download some data from and maybe
>> some fixes for these problems.
>>
>
> First hit when googling for 'testdata generator site':
> http://www.generatedata.com/ The search produces various other useful
> looking sites.

Another option, driven by python...

https://github.com/joke2k/faker

[toc] | [prev] | [next] | [standalone]


#75261

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2014-07-26 21:28 +0000
Message-ID<lr16ic$avv$2@dont-email.me>
In reply to#75247
On Sat, 26 Jul 2014 06:41:11 -0700, Nicholas Cannon wrote:

> Hey I need some sample data to test out and do stuff with.

When I want sample data I usually write a python script to generate it.

> Also I am
> having strange errors with idle when i load a .txt file read it and then
> print it, idle crashes well kind of freezes.

Missing libraries? Bad characters in the text file? 

> Not sure what is wrong
> here. Also I am having troubles with Numpy and its loadtxt function:
> 
> ValueError: cannot set an array element with a sequence

How about showing us the code concerned, and the text that's being loaded.

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [next] | [standalone]


#75262

FromNicholas Cannon <nicholascannon1@gmail.com>
Date2014-07-26 16:15 -0700
Message-ID<af80f1b9-6a4e-4b0d-ba93-288455055b8c@googlegroups.com>
In reply to#75247
On Saturday, July 26, 2014 9:41:11 PM UTC+8, Nicholas Cannon wrote:
 Also I am having troubles with Numpy and its loadtxt function:
> 
> 
> 
> ValueError: cannot set an array element with a sequence

I found out why this has occurred because the csv file i was using didnt have a consistent amount of values in each line so when the load text tried to load it into a list or whatever some lines had a missing index or something.

[toc] | [prev] | [next] | [standalone]


#75263

FromNicholas Cannon <nicholascannon1@gmail.com>
Date2014-07-26 16:15 -0700
Message-ID<b3fd8d61-10d8-424e-9370-12230fa88847@googlegroups.com>
In reply to#75247
Oh the above is quoted here just the bottom line in added in 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web