code: def _format_column_names(data: pandas.DataFrame) -> pandas.DataFrame:
      """Formats the column names for :class:`sagemaker.feature_store.feature_group.FeatureGroup`
  
      Description:
          Module to format correctly the name of the columns of a DataFrame
          to later generate the features names of a Feature Group
  
      Args:
          data (:class:`pandas.DataFrame`): dataframe used
  
      Returns:
          :class:`pandas.DataFrame`
      """
      data.rename(
          columns=lambda x: x.replace(" ", "_")
          .replace(".", "")
          .lower()[:62],
          inplace=True,
      )
      return data
  
file_path: sagemaker-python-sdk/src/sagemaker/feature_store/feature_utils.py
imports: from __future__ import absolute_import
  import re
  import logging
  from typing import Union
  from pathlib import Path
  import pandas
  import boto3
  from pandas import DataFrame, Series, read_csv
  from sagemaker.feature_store.feature_group import FeatureGroup
  from sagemaker.session import Session
label_desc: Use image node_id 3 for calling a global function with example usage: _format_column_names(data) and returns: data