### Importing a CSV file Source: https://github.com/morganjwilliams/pyrolite/blob/main/docs/source/gettingstarted.rst Example of importing a table from a .csv file using pandas. ```python from pathlib import Path import pandas as pd ``` -------------------------------- ### Reading Excel files with Pandas Source: https://github.com/morganjwilliams/pyrolite/blob/main/docs/source/gettingstarted.rst Example of reading an Excel file into a Pandas DataFrame. ```python filepath = Path('./mydata.xlsx') df = pd.read_excel(filepath) ``` -------------------------------- ### Reading CSV files with Pandas Source: https://github.com/morganjwilliams/pyrolite/blob/main/docs/source/gettingstarted.rst Example of reading a CSV file into a Pandas DataFrame. ```python filepath = Path('./mydata.csv') df = pd.read_csv(filepath) ``` -------------------------------- ### Install pyrolite Source: https://github.com/morganjwilliams/pyrolite/blob/main/docs/source/installation.rst Installs pyrolite using pip with a user-level installation. ```bash pip install --user pyrolite ``` -------------------------------- ### Development Installation Source: https://github.com/morganjwilliams/pyrolite/blob/main/docs/source/dev/development.rst Cloning the repository and setting up the development environment using uv. ```bash git clone https://github.com/morganjwilliams/pyrolite.git git checkout develop uv sync --extra dev ``` -------------------------------- ### Install pyrolite from PyPI Source: https://github.com/morganjwilliams/pyrolite/blob/main/README.md Standard installation of the pyrolite package using pip. ```bash pip install pyrolite ``` -------------------------------- ### Reading tables with pyrolite.util.pd.read_table Source: https://github.com/morganjwilliams/pyrolite/blob/main/docs/source/gettingstarted.rst Using pyrolite's utility function to read tables from CSV or Excel files. ```python from pyrolite.util.pd import read_table df = read_table(filepath) ``` -------------------------------- ### Install development version from GitHub Source: https://github.com/morganjwilliams/pyrolite/blob/main/README.md Install the most up-to-date development version of pyrolite directly from the GitHub repository using uv. ```bash git clone git://github.com/morganjwilliams/pyrolite.git@develop git checkout develop uv sync --extra dev ``` -------------------------------- ### Install pyrolite with optional dependencies Source: https://github.com/morganjwilliams/pyrolite/blob/main/docs/source/installation.rst Installs pyrolite with specific optional dependencies using pip. ```bash pip install --user pyrolite[stats] ``` ```bash pip install --user pyrolite[dev,docs] ``` -------------------------------- ### Install Development Version Source: https://github.com/morganjwilliams/pyrolite/blob/main/CONTRIBUTING.md Command to install an editable copy of pyrolite for development. ```bash python setup.py develop ``` -------------------------------- ### Upgrade pyrolite Source: https://github.com/morganjwilliams/pyrolite/blob/main/docs/source/installation.rst Upgrades pyrolite to the latest version using pip. ```bash pip install --upgrade pyrolite ```