zwn22 commited on
Commit
1c834d3
1 Parent(s): 9a77d91

Update NC_Crime.py

Browse files
Files changed (1) hide show
  1. NC_Crime.py +7 -1
NC_Crime.py CHANGED
@@ -77,10 +77,12 @@ class NCCrimeDataset(datasets.GeneratorBasedBuilder):
77
  citation=_CITATION,
78
  )
79
 
 
80
  def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
81
  # Use the raw GitHub link to download the CSV file
82
  downloaded_file_path = dl_manager.download_and_extract(
83
- "https://raw.githubusercontent.com/znw2024/NC-Crime/main/DCCR.csv"
 
84
  # "https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/CC.csv"
85
  )
86
 
@@ -90,6 +92,10 @@ class NCCrimeDataset(datasets.GeneratorBasedBuilder):
90
  ]
91
 
92
 
 
 
 
 
93
  def _generate_examples(self, filepath):
94
  # Read the CSV file
95
  df = pd.read_csv(filepath) ## just for test
 
77
  citation=_CITATION,
78
  )
79
 
80
+
81
  def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
82
  # Use the raw GitHub link to download the CSV file
83
  downloaded_file_path = dl_manager.download_and_extract(
84
+ https://drive.google.com/uc?export=download&id=109KUBevJNNC_aKcTmGhjh53c3JrlgTW4
85
+ # "https://raw.githubusercontent.com/znw2024/NC-Crime/main/DCCR.csv"
86
  # "https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/CC.csv"
87
  )
88
 
 
92
  ]
93
 
94
 
95
+
96
+
97
+
98
+
99
  def _generate_examples(self, filepath):
100
  # Read the CSV file
101
  df = pd.read_csv(filepath) ## just for test