Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10222 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-05-27 08:41 +0000 |
| Last post | 2012-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.
Re: Restricting Data from Wolfram|Alpha Input into Mathematica Bob Hanlon <hanlonr357@gmail.com> - 2012-05-27 08:41 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-05-27 08:41 +0000 |
| Subject | Re: 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
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web