Skip to content

Commit

Permalink
Modify indexes selectors example
Browse files Browse the repository at this point in the history
  • Loading branch information
morganjwilliams committed Jul 15, 2020
1 parent 059cc4f commit 2229dac
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions docs/source/gallery/examples/geochem/indexes_selectors.py
Expand Up @@ -10,7 +10,21 @@
########################################################################################
from pyrolite.util.synthetic import normal_frame

df = normal_frame(columns=["CaO", "MgO", "SiO2", "FeO", "Mn", "Ti", "La", "Lu", "Mg/Fe"])
df = normal_frame(
columns=[
"CaO",
"MgO",
"SiO2",
"FeO",
"Mn",
"Ti",
"La",
"Lu",
"Y" "Mg/Fe",
"87Sr/86Sr",
"Ar40/Ar36",
]
)
########################################################################################

df.head(2).pyrochem.oxides
Expand All @@ -25,10 +39,18 @@

########################################################################################

df.head(2).pyrochem.REY

########################################################################################

df.head(2).pyrochem.compositional

########################################################################################

df.head(2).pyrochem.isotope_ratios

########################################################################################

df.pyrochem.list_oxides

########################################################################################
Expand All @@ -43,10 +65,14 @@

df.pyrochem.list_compositional

########################################################################################

df.pyrochem.list_isotope_ratios

########################################################################################
# All elements (up to U):
#
from pyrolite.geochem.ind import common_elements, common_oxides, REE
from pyrolite.geochem.ind import common_elements, common_oxides, REE, REY

common_elements() # string return

Expand All @@ -63,3 +89,6 @@
########################################################################################

REE()

########################################################################################
REY()

0 comments on commit 2229dac

Please sign in to comment.