code: def df_month_to_date(df: DataFrame) -> DataFrame:
      """Yields the Month-to-Date (MTD) DataFrame"""
      in_mtd = df.index >= Timestamp.now().strftime("%Y-%m-01")
      if any(in_mtd):
          return df[in_mtd]
      return df
  
file_path: pandas-ta/pandas_ta/utils/_time.py
imports: from datetime import datetime
  from time import localtime, perf_counter
  from typing import Tuple
  from pandas import DataFrame, Timestamp
  from pandas_ta import EXCHANGE_TZ, RATE
label_desc: Use image node_id 2 for calling a global function with example usage: df_month_to_date(df) and returns: df, df