code: def bad_facet_spacing_df():
      NROWS = 101
      NDATA = 1000
      categories = [n % NROWS for n in range(NDATA)]
      df = pd.DataFrame(
          {
              "x": [random.random() for _ in range(NDATA)],
              "y": [random.random() for _ in range(NDATA)],
              "category": categories,
          }
      )
      return df
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/test_px/test_facets.py
imports: import pandas
  import plotly.express
  from pytest import approx
  import pytest
  import random
label_desc: Use image node_id 3 for calling a global function with example usage: bad_facet_spacing_df() and returns: df