Re: Restricting Data from Wolfram|Alpha Input into Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg126637] Re: Restricting Data from Wolfram|Alpha Input into Mathematica
- From: Mike McCraith <sandwaterhand at gmail.com>
- Date: Mon, 28 May 2012 05:08:55 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201205260912.FAA07102@smc.vnet.net> <201205270840.EAA17763@smc.vnet.net>
Thanks everyone for the help!
But, one question remains: Where the heck do you learn all of this stuff?
I pour over the included documentation and this forum before asking a
question. I can't seem to find a good place that says basically "this
symbol means this in Mathematica".
On Sun, May 27, 2012 at 4:40 AM, Bob Hanlon <hanlonr357 at gmail.com> wrote:
> cattleAfrica = Cases[WolframAlpha["Number of Cattle in Africa",
> "DataRules",
> IncludePods -> {"PropertyRanking:CountryData"}],
> {_Integer, _String, _Integer?(10^6 <= # <= 10^7 &)},
> Infinity];
>
> ListPlot[Tooltip[Drop[#, {2}], #] & /@ cattleAfrica,
> Frame -> True, Axes -> False]
>
>
> Bob Hanlon
>
>
> On Sat, May 26, 2012 at 5:12 AM, Mike McCraith <sandwaterhand at gmail.com>
> wrote:
> >
> > Hello!
> >
> > I have the following code which brings up the number of cattle, by all
> > countries, in Africa.
> >
> > WolframAlpha["Number of Cattle in Africa",
> > IncludePods -> {"PropertyRanking:CountryData"}]
> >
> > Is there any way of only displaying the values (country name and
> population
> > number) that are between 1 and 10 million for instance?
> >
> > Also, is there an automatic way of extracting those values (population
> > numbers, not the country name) and then turning them into a data set?
> >
> > Thanks much for reading and any help!
> >
> > Mike
> >
>
>
- References:
- Restricting Data from Wolfram|Alpha Input into Mathematica
- From: Mike McCraith <sandwaterhand@gmail.com>
- Re: Restricting Data from Wolfram|Alpha Input into Mathematica
- From: Bob Hanlon <hanlonr357@gmail.com>
- Restricting Data from Wolfram|Alpha Input into Mathematica