Core Data¶
Periodic Table¶
-
class
chemlib.chemistry.
PeriodicTable
(*args, **kwargs)[source]¶ Bases:
pandas.core.frame.DataFrame
A
pandas.Dataframe
object that contains periodic table data:>>> import chemlib >>> chemlib.PeriodicTable() Unnamed: 0 AtomicNumber ... Config MassNumber 0 0 1.0 ... 1s1 1.0 1 1 2.0 ... 1s2 4.0 2 2 3.0 ... [He] 2s1 7.0 3 3 4.0 ... [He] 2s2 9.0 4 4 5.0 ... [He] 2s2 2p1 11.0 .. ... ... ... ... ... 113 113 114.0 ... [Rn] 5f14 6d10 7s2 7p2 289.0 114 114 115.0 ... [Rn] 5f14 6d10 7s2 7p3 288.0 115 115 116.0 ... [Rn] 5f14 6d10 7s2 7p4 292.0 116 116 117.0 ... [Rn] 5f14 6d10 7s2 7p5 295.0 117 117 118.0 ... [Rn] 5f14 6d10 7s2 7p6 294.0 [118 rows x 31 columns]
Column Names
>>> list(chemlib.pte) #Column names
['AtomicNumber', 'Element', 'Symbol', 'AtomicMass', 'Neutrons', 'Protons', 'Electrons', 'Period', 'Group', 'Phase', 'Radioactive', 'Natural', 'Metal', 'Nonmetal', 'Metalloid', 'Type', 'AtomicRadius', 'Electronegativity', 'FirstIonization', 'Density', 'MeltingPoint', 'BoilingPoint', 'Isotopes', 'Discoverer', 'Year', 'SpecificHeat', 'Shells', 'Valence', 'Config', 'MassNumber']
PTable GUI¶
>>> import chemlib
>>> chemlib.GUI()
Elements¶
-
class
chemlib.chemistry.
Element
(symbol)[source]¶ A class containing all the properties of an element:
Contains all the properties of the respective element:
>>> from chemlib import Element
>>> xenon = Element('Xe') #Instantiate with symbol of Element
>>> xenon.properties
{'AtomicNumber': 54.0, 'Element': 'Xenon', 'Symbol': 'Xe', 'AtomicMass': 131.293, 'Neutrons': 77.0, 'Protons': 54.0, 'Electrons': 54.0, 'Period': 5.0, 'Group': 18.0, 'Phase': 'gas', 'Radioactive': False, 'Natural': True, 'Metal': False, 'Nonmetal': True, 'Metalloid': False, 'Type': 'Noble Gas', 'AtomicRadius': '1.2', 'Electronegativity': nan, 'FirstIonization': '12.1298', 'Density': '0.00589', 'MeltingPoint': '161.45', 'BoilingPoint': '165.03', 'Isotopes': 31.0, 'Discoverer': 'Ramsay and Travers', 'Year': '1898', 'SpecificHeat': '0.158', 'Shells': 5.0, 'Valence': 8.0, 'Config': '[Kr] 4d10 5s2 5p6', 'MassNumber': 131.0}
>>> xenon.AtomicMass
131.293
>>> xenon.FirstIonization
'12.1298'
chemlib.chemistry.Element.
AtomicNumber
: float¶
chemlib.chemistry.Element.
Element
: str = The name of the element¶
chemlib.chemistry.Element.
Symbol
: str = The symbol of the element¶
chemlib.chemistry.Element.
AtomicMass
: float¶
chemlib.chemistry.Element.
Neutrons
: float¶
chemlib.chemistry.Element.
Protons
: float¶
chemlib.chemistry.Element.
Electrons
: float¶
chemlib.chemistry.Element.
Period
: float¶
chemlib.chemistry.Element.
Group
: float¶
chemlib.chemistry.Element.
Phase
: str = The state of matter of the element at room temperature.¶
chemlib.chemistry.Element.
Radioactive
: boolean¶
chemlib.chemistry.Element.
Natural
: boolean¶
chemlib.chemistry.Element.
Metal
: boolean¶
chemlib.chemistry.Element.
Nonmetal
: boolean¶
chemlib.chemistry.Element.
Metalloid
: boolean¶
chemlib.chemistry.Element.
Type
: str¶
chemlib.chemistry.Element.
AtomicRadius
: str¶
chemlib.chemistry.Element.
Electronegativity
: str or NaN¶
chemlib.chemistry.Element.
FirstIonization
: str or NaN¶
chemlib.chemistry.Element.
Density
: float¶
chemlib.chemistry.Element.
MeltingPoint
: float¶
chemlib.chemistry.Element.
BoilingPoint
: float¶
chemlib.chemistry.Element.
Isotopes
: float¶
chemlib.chemistry.Element.
Discoverer
: str¶
Other Constants¶
-
chemlib.
AVOGADROS_NUMBER
: float = 6.02e+23¶ Contains Avogaadro’s Number, which relates the number of constituent particles in a sample with the amount of substance in that sample.
>>> import chemlib >>> chemlib.AVOGADROS_NUMBER 6.02e+23
-
chemlib.
c
: float = 2.998e+8¶
The speed of light.
-
chemlib.
h
: float = 6.626e-34¶
Planck’s constant.
-
chemlib.
R
: float = 1.0974e+7¶
Rydberg constant.