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


Groups > comp.soft-sys.math.mathematica > #10222

Re: Restricting Data from Wolfram|Alpha Input into Mathematica

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Restricting Data from Wolfram|Alpha Input into Mathematica
Date 2012-05-27 08:41 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jpspb4$hbm$1@smc.vnet.net> (permalink)
References <201205260912.FAA07102@smc.vnet.net>

Show all headers | View raw


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@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
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Restricting Data from Wolfram|Alpha Input into Mathematica Bob Hanlon <hanlonr357@gmail.com> - 2012-05-27 08:41 +0000

csiph-web