Back to skills
extension
Category: Data & AnalyticsNo API key required

Pandas DataFrame 模式强制器

使用Pandera模式定义来验证和转换Pandas DataFrames,支持列级别的dtype、可空性和自定义检查约束。从示例DataFrames自动生成Pandera模式代码。

personAuthor: user_3c6cb52ehubcommunity

Pandas DataFrame 模式强制器

Validates and transforms Pandas DataFrames using Pandera schema definitions with column-level dtype, nullable, and custom check constraints. Auto-generates Pandera schema code from sample DataFrames.

Installation

Use the upstream install or setup path that matches your environment:

  • conda install -c conda-forge pandas
  • pip install pandas
  • pip install cython
  • pip install .

Requirements and caveats from upstream:

  • pandas: A Powerful Python Data Analysis Toolkit

  • pandas is a Python package that provides fast, flexible, and expressive data
  • doing practical, real-world data analysis in Python. Additionally, it has

Basic usage or getting-started notes:

  • To install pandas from source you need Cython in addition to the normal

  • dependencies above. Cython can be installed from PyPI:

  • sh

  • Source: https://github.com/1991513ccie-png/skills

  • Extracted from upstream docs: https://raw.githubusercontent.com/pandas-dev/pandas/HEAD/README.md