code: def edit_data():
      df = pd.DataFrame(
          [
              dict(
                  a=1,
                  b=1.25,
                  c="abc",
                  d=pd.Timestamp("20000101"),
                  e=pd.Timestamp("20000101 11:59:59.999999999"),
                  f=True,
                  g=datetime.timedelta(seconds=500),
              )
          ]
      )
      df.loc[:, "h"] = pd.Series(["abc"], dtype="category")
      return df
  
file_path: dtale/tests/dtale/test_edit_cell.py
imports: import datetime
  import json
  import numpy
  import pandas
  import pytest
  from tests.dtale import build_data_inst, build_settings, build_dtypes
  from tests.dtale.test_views import app
label_desc: Use image node_id 1 for calling a global function with example usage: edit_data() and returns: df