Visualizing custom periodic tables

In this tutorial you’ll how to use mendeleev to create customized visualizations of the periodic table.

The most convenient method to use for this is periodic_table function from mendeleev.vis module.

[1]:
from mendeleev.vis import periodic_table

Make sure you you have optional vis dependencies installed when installing mendeleev. If you are using pip install with

pip install mendeleev[vis]

To see the default visualization of the periodic table simply call the imported function

[2]:
periodic_table()
/home/docs/checkouts/readthedocs.org/user_builds/mendeleev/envs/stable/lib/python3.8/site-packages/mendeleev/vis/utils.py:34: FutureWarning: In a future version, `df.iloc[:, i] = newvals` will attempt to set the values inplace instead of always setting a new array. To retain the old behavior, use either `df[df.columns[i]] = newvals` or, if columns are non-unique, `df.isetitem(i, newvals)`
  elements.loc[elements[y_coord].notnull(), "y"] = elements.loc[