class_docstr: Validate a dataframe using a Pydantic schema.
  
  Attributes:
      df: dataframe to be validated
class_docstr_tok: ["Validate","a","dataframe","using","a","Pydantic","schema",".","Attributes",":","df",":","dataframe","to","be","validated"]
docstr: Args:
      df: dataframe to be validated
docstr_tok: ["Args",":","df",":","dataframe","to","be","validated"]
code: def __init__(self, df: DataFrameType):
      """
      Args:
          df: dataframe to be validated
      """
      self._df = df
  
file_path: pandas-ai/pandasai/helpers/df_validator.py
imports: from typing import List, Dict
  from pydantic import ValidationError
  from pydantic import BaseModel
  from pandasai.helpers.df_info import DataFrameType, df_type
label_desc: Use image node_id 1 to create a new DfValidator object  with example: obj = DfValidator(df)