pandrs 0.4.1

A high-performance DataFrame library for Rust, providing pandas-like API with advanced features including SIMD optimization, parallel processing, and distributed computing capabilities
Documentation
//! Core data structures and traits for PandRS.
//!
//! This module contains the fundamental building blocks for all PandRS operations:
//! - Column types and operations
//! - Index implementations
//! - Data value representations
//! - Error types and contexts
//! - DataFrame trait definitions

/// Advanced multi-level indexing with hierarchical operations.
///
/// Provides sophisticated indexing capabilities for multi-dimensional data access.
pub mod advanced_multi_index;

/// Column types and trait implementations for type-safe data operations.
///
/// Core column type definitions and casting operations.
pub mod column;

/// Data value representation and conversions.
///
/// Unified value type for representing heterogeneous data.
pub mod data_value;

/// The `DataFrameOps` trait for polymorphic operations.
///
/// Defines a structural operation set implemented by DataFrame wrapper types
/// such as the JIT-optimized wrapper; the base `DataFrame` uses inherent methods.
pub mod dataframe_traits;

/// Error types for the core module.
///
/// Defines all error conditions that can occur in core operations with context support.
pub mod error;

/// Error context and recovery utilities.
///
/// Enhanced error handling with contextual information and recovery strategies.
pub mod error_context;

/// Index trait and implementations.
///
/// Provides indexing capabilities for Series and DataFrames.
pub mod index;

/// Migration utilities for backward compatibility.
///
/// Tools for migrating between different versions of data structures. The
/// module itself is hidden from the public docs (internal surface); the
/// intended public types are re-exported via the `pub use migration::{..}`
/// facade below.
#[doc(hidden)]
pub mod migration;

/// Multi-index (hierarchical index) implementation.
///
/// Enables hierarchical indexing for advanced data organization.
pub mod multi_index;

/// Synchronization helpers for thread-safe operations.
///
/// Utilities for safe concurrent access to shared data structures. Hidden from
/// the public docs (internal helper surface); kept `pub` rather than
/// `pub(crate)` because the helpers have no in-crate callers, so demoting them
/// would make them dead code.
#[doc(hidden)]
pub mod sync_helpers;

// Re-exports for convenience
pub use advanced_multi_index::{
    AdvancedMultiIndex, CrossSectionResult, IndexValue, SelectionCriteria,
};
pub use column::{BitMask, Column, ColumnCast, ColumnTrait, ColumnType};
pub use data_value::DataValue;
pub use dataframe_traits::{Axis, DataFrameOps, DropNaHow, FillMethod};
pub use error::{Error, PandRSError, Result};
pub use error_context::{
    ErrorContext, ErrorContextBuilder, ErrorRecovery, ErrorRecoveryHelper, ErrorSeverity,
};
pub use index::{Index, IndexTrait};
pub use migration::{
    BackupManager, BackupStrategy, BackwardCompatibilityLayer, MigrationExecutor, MigrationPlan,
    MigrationResult, MigrationRiskLevel, MigrationStep, Version,
};
pub use multi_index::MultiIndex;