datafort Module

DataFort - Modern Data Frame Library for Fortran

This module provides a comprehensive data frame implementation for Fortran, offering pandas-like functionality for scientific computing and data analysis.

Features

  • Mixed-type columns: real, integer, logical, character, complex
  • Statistical operations: mean, std, median, percentile, variance, correlation
  • Data manipulation: filter, sort, slice, transpose, join
  • Mathematical functions: cumsum, diff, normalize, log, exp, sqrt
  • I/O operations: CSV import/export, console display
  • Convenience methods: head, tail, info, describe, sample, shuffle

Example Usage

use datafort
use precision
type(data_frame) :: df
real(rk) :: temps(3) = [20.0_rk, 25.0_rk, 22.0_rk]

call df%new()
call df%append(temps, "Temperature")
call df%write_console()
print*, "Mean:", df%mean_real(1)
call df%destroy()

Module Organization

This module serves as the main entry point and re-exports all functionality from specialized submodules:

  • datafort_types - Core data_frame type definition
  • datafort_accessors - Append, get, and set operations
  • datafort_statistics - Statistical operations
  • datafort_transformations - Mathematical transformations
  • datafort_manipulation - Data selection and manipulation
  • datafort_sorting - Sorting and ranking operations
  • datafort_io - Input/output operations
  • datafort_utilities - Convenience functions
  • datafort_joins - Join operations
  • datafort_nan - NaN handling
  • datafort_advanced - Advanced data operations
  • datafort_boolean_indexing - Boolean indexing/masking operations