class_docstr: This is dummy DataFrame class,
  which imitates pyspark.sql.dataframe.DataFrame class
  for testing purposes.
class_docstr_tok: ["This","is","dummy","DataFrame","class",",","which","imitates","pyspark.sql.dataframe.DataFrame","class","for","testing","purposes","."]
code: def toPandas(self):
      self._lazy_evaluation()
      assert self._data is not None
      if self._limit > 0:
          return self._data.head(self._limit)
      return self._data
  
file_path: streamlit/lib/tests/streamlit/pyspark_mocks.py
imports: from __future__ import annotations
  import numpy
  import pandas
  from pyspark.sql.dataframe import DataFrame
  from pyspark.sql.session import SparkSession
  from pyspark.sql.types import FloatType, IntegerType, StringType, StructField, StructType
label_desc: Use image node_id 4 for calling the DataFrame obj's underlying member method code with example usage: obj.toPandas() and returns: self, self