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


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

Re: Restricting Data from Wolfram|Alpha Input into Mathematica

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-05-27 08:41 +0000
Last post2012-05-27 08:41 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#10222 — Re: Restricting Data from Wolfram|Alpha Input into Mathematica

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-05-27 08:41 +0000
SubjectRe: Restricting Data from Wolfram|Alpha Input into Mathematica
Message-ID<jpspb4$hbm$1@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@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
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web