code: def test_ordinal_only():
      feat = DateFeaturizer(
          column_name="date",
          prefix="DATE",
          with_day_of_month=True,
          with_day_of_week=False,
      )
  
      y_prime, X_prime = feat.fit_transform(y, X)
  
      assert_array_equal(y, y_prime)
      assert y is not y_prime
  
      # there should be 1 column in the X_prime df
      assert X_prime.shape[1] == 1
  
      _ordinal_assertions(X_prime)
  
      # show ordinal col not here
      assert not [n for n in X_prime.columns.tolist() if "WEEKDAY" in n]
  
      # date column should not be there anymore
      assert "date" not in X_prime.columns.tolist()
  
file_path: pmdarima/pmdarima/preprocessing/exog/tests/test_dates.py
imports: from pmdarima.datasets._base import load_date_example
  from pmdarima.preprocessing.exog import DateFeaturizer
  from pmdarima.compat.pytest import pytest_error_str
  from numpy.testing import assert_array_equal
  import pytest
label_desc: Use image node_id 9 for calling a global function with example usage: test_ordinal_only() without return types