class_docstr: Radon dataset.
class_docstr_tok: ["Radon","dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, file_path_srrs2, file_path_cty):
      """Yields examples."""
      pd = tfds.core.lazy_imports.pandas
  
      with epath.Path(file_path_srrs2).open() as f:
          df_srrs2 = pd.read_csv(f)
      with epath.Path(file_path_cty).open() as f:
          df_cty = pd.read_csv(f)
  
      df_srrs2.rename(columns=str.strip, inplace=True)
      df_cty.rename(columns=str.strip, inplace=True)
  
      # We will now join datasets on Federal Information Processing Standards
      # (FIPS) id, ie, codes that link geographic units, counties and county
      # equivalents. http://jeffgill.org/Teaching/rpqm_9.pdf
      df_srrs2["fips"] = 1000 * df_srrs2.stfips + df_srrs2.cntyfips
      df_cty["fips"] = 1000 * df_cty.stfips + df_cty.ctfips
  
      df = df_srrs2.merge(
          df_cty[["fips", "Uppm", "lon", "lat"]], on="fips"
      )
      df = df.drop_duplicates(subset="idnum")
      df.drop("fips", axis=1, inplace=True)
  
      df["wave"].replace({"  .": "-1"}, inplace=True)
      df["rep"].replace({" .": "-1"}, inplace=True)
      df["zip"].replace({"     ": "-1"}, inplace=True)
  
      for i, (_, row) in enumerate(df.iterrows()):
          radon_val = row.pop("activity")
          yield i, {
              "activity": float(radon_val),
              "features": {
                  name: features()[name][1](value)
                  for name, value in row.items()
              },
          }
  
file_path: datasets/tensorflow_datasets/datasets/radon/radon_dataset_builder.py
imports: from __future__ import absolute_import
  from __future__ import annotations
  from __future__ import division
  from __future__ import print_function
  import collections
  import urllib
  from etils import epath
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Builder obj's underlying member method code with example usage: obj._generate_examples(file_path_srrs2, file_path_cty) without return types