Re: Restricting Data from Wolfram|Alpha Input into Mathematica
- To: mathgroup at smc.vnet.net
- Subject: [mg126628] Re: Restricting Data from Wolfram|Alpha Input into Mathematica
- From: Bob Hanlon <hanlonr357 at gmail.com>
- Date: Sun, 27 May 2012 04:40:32 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201205260912.FAA07102@smc.vnet.net>
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
>
- Follow-Ups:
- Re: Restricting Data from Wolfram|Alpha Input into Mathematica
- From: Mike McCraith <sandwaterhand@gmail.com>
- Re: Restricting Data from Wolfram|Alpha Input into Mathematica
- References:
- Restricting Data from Wolfram|Alpha Input into Mathematica
- From: Mike McCraith <sandwaterhand@gmail.com>
- Restricting Data from Wolfram|Alpha Input into Mathematica