{"library":"matminer","title":"Matminer","description":"Matminer is a Python library providing a comprehensive suite of tools for data mining in Materials Science. It offers functionalities for data loading, featurization of materials (compositions, structures), and integration with machine learning workflows. As of version 0.10.0, it is actively developed with regular updates to support new features and maintain compatibility with its dependencies.","language":"python","status":"active","last_verified":"Sat May 16","install":{"commands":["pip install matminer"],"cli":{"name":"matminer","version":"sh: 1: matminer: not found"}},"imports":["from matminer.datasets.dataframe_loader import load_elastic_debye","from matminer.featurizers.conversions import StrToStructure","from matminer.featurizers.composition import ElementProperty","from matminer.featurizers.structure import SiteStatsFingerprint"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pandas as pd\nfrom matminer.datasets.dataframe_loader import load_elastic_debye\nfrom matminer.featurizers.conversions import StrToStructure\nfrom matminer.featurizers.composition import ElementProperty\n\n# 1. Load a sample dataset\ndf = load_elastic_debye()\nprint(f\"Initial DataFrame shape: {df.shape}\")\nprint(df.head())\n\n# 2. Convert 'structure' string representation to pymatgen Structure objects\n# Note: This step is crucial for structure-based featurizers\nstr_to_structure = StrToStructure()\ndf = str_to_structure.featurize_dataframe(df, 'structure')\n\n# 3. Apply a composition featurizer\n# (ElementProperty calculates statistics of elemental properties for each composition)\nep_featurizer = ElementProperty(\n    features=['atomic_radius', 'electronegativity'],\n    stats=['mean', 'std_dev']\n)\ndf = ep_featurizer.featurize_dataframe(df, 'composition', ignore_errors=True)\n\nprint(f\"\\nDataFrame after featurization shape: {df.shape}\")\nprint(df[['formula', 'composition', 'ElementProperty mean atomic_radius', 'ElementProperty std_dev electronegativity']].head())","lang":"python","description":"This quickstart demonstrates how to load a dataset from matminer, convert string representations of structures into pymatgen Structure objects, and apply a composition-based featurizer to enrich the DataFrame with new material properties.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":"0.9.3","pypi_latest":"0.10.1","is_stale":true,"summary":{"python_range":"3.10–3.9","success_rate":50,"avg_install_s":31.7,"avg_import_s":null,"wheel_type":"sdist"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"matminer","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"matminer","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":30.3,"import_time_s":null,"mem_mb":null,"disk_size":"635M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"matminer","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"matminer","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":29.9,"import_time_s":null,"mem_mb":null,"disk_size":"726M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"matminer","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"matminer","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":31.9,"import_time_s":null,"mem_mb":null,"disk_size":"693M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"matminer","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"matminer","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":31.8,"import_time_s":null,"mem_mb":null,"disk_size":"689M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"matminer","exit_code":1,"wheel_type":null,"failure_reason":"build_error","import_side_effects":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"matminer","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"broken","install_time_s":34.5,"import_time_s":null,"mem_mb":null,"disk_size":"650M"}]}}