code: def test_inf(self):
      data = pd.Series([0, np.inf, 0, 5, np.NINF, np.inf, np.NINF])
      answer = pd.Series(
          [np.nan, np.inf, -1, np.inf, np.NINF, np.nan, np.nan]
      )
      primtive_func = self.primitive().get_function()
      given_answer = primtive_func(data)
      np.testing.assert_array_equal(given_answer, answer)
  
file_path: featuretools/featuretools/tests/primitive_tests/transform_primitive_tests/test_percent_change.py
imports: import numpy
  import pandas
  from pytest import raises
  from featuretools.primitives import PercentChange
  from featuretools.tests.primitive_tests.utils import PrimitiveTestBase, find_applicable_primitives, valid_dfs
label_desc: Use image node_id 6 for calling the TestPercentChange obj's underlying member method code with example usage: obj.test_inf() without return types