Witold Wydmański commited on
Commit
c73968e
1 Parent(s): cc0fe64

feat: add self url

Browse files
colorectal-carcinoma-microbiome-fengq.py CHANGED
@@ -11,6 +11,7 @@ The dataset contains 16S rRNA gene sequencing data from healthy controls and col
11
 
12
  _HOMEPAGE = "https://pubmed.ncbi.nlm.nih.gov/25758642/"
13
 
 
14
 
15
  class ColorectalCarcinomaMicrobiomeFengQConfig(datasets.GeneratorBasedBuilder):
16
  BUILDER_CONFIGS = [
@@ -69,7 +70,7 @@ class ColorectalCarcinomaMicrobiomeFengQConfig(datasets.GeneratorBasedBuilder):
69
  ]
70
 
71
  def _generate_examples(self, filepath, split=None):
72
- df = pd.read_csv(filepath)
73
  for i, row in df.iterrows():
74
  target = row["target"]
75
  values = row.drop("target").values
 
11
 
12
  _HOMEPAGE = "https://pubmed.ncbi.nlm.nih.gov/25758642/"
13
 
14
+ _URL = "https://huggingface.co/datasets/wwydmanski/colorectal-carcinoma-microbiome-fengq/raw/main/"
15
 
16
  class ColorectalCarcinomaMicrobiomeFengQConfig(datasets.GeneratorBasedBuilder):
17
  BUILDER_CONFIGS = [
 
70
  ]
71
 
72
  def _generate_examples(self, filepath, split=None):
73
+ df = pd.read_csv(_URL+filepath)
74
  for i, row in df.iterrows():
75
  target = row["target"]
76
  values = row.drop("target").values