🚀
Finter
PlaygroundData Catalogue
Quick Start
Quick Start
  • Getting Started with Finter: A Quick Guide
  • Explore Finter
    • Finter Labs (Recommended)
    • Other Ways
      • Google Colab
      • Conda, venv, or Docker
      • Setting Up a .env File (Optional)
  • Framework
    • CM (Content Model)
    • AM (Alpha Model)
    • PM (Portfolio Model)
    • Simulatior
      • Target Volume Limit
    • Finter Cli Submission
      • Validation
      • GitHub Sync
      • [Legacy] JupyterLab Submission
      • [Legacy] Submission
  • MODELING
    • MetaPortfolio
      • Equal weight meta portfolio
      • Fixed weight meta portfolio
      • Risk parity meta portfolio
    • StrategicAssetAllocation
    • DateConverter
    • BuyHoldConverter
  • Supporting Tools
    • FileManager
    • Finter AI (alpha ver.)
    • Data
      • FinHelper
        • filter_unchanged
        • unify_idx
        • shift_fundamental
        • rolling
        • expand_to_gvkeyiid
      • ModelData
      • ID Table
      • ID Converter
      • Quanda Data
    • Evaluator
      • top_n_assets
      • bottom_n_assets
      • compare_with_bm
    • PortfolioAnalyzer
    • Email
Powered by GitBook
On this page
  • Description
  • Parameters
  • Returns
  • Example

Was this helpful?

Edit on GitHub
  1. Supporting Tools
  2. Data
  3. FinHelper

rolling

Description

FinHelper rolling function supports rolling operations (sum, mean, std, var, skew) on a quarterly basis.

Parameters

  • df (pandas.DataFrame): financial unpivot CM

  • window (int > 0)

  • method (str; ["sum", "mean", "std", "var", "skew"])

  • skipna (bool) : Default - True Exclude NA/null values when computing the result.

  • fiscal (str; ["quarter", "annual"]) : Default - 'quarter'

Returns

  • pandas.DataFrame

Example

# df is financial unpivot cm
roll_df = FinHelper.rolling(df, window=4, method='sum')

Last updated 8 months ago

Was this helpful?