original_docstring: Download zip file and extract to data directory
docstring: Download zip file and extract to data directory
docstring_tokens: Download zip file and extract to data directory
code: def download(self):
          """Download zip file and extract to data directory"""
          if exists(self.output):
              print(f"The {self.filename} shapefile has already been downloaded")
              return self.output
  
          print(f"Downloading the {self.filename} shapefile...")
          download = requests.get(self.url)
          zfile = zipfile.ZipFile(io.BytesIO(download.content))
          zfile.extractall(self.root)
          return self.output
code_tokens: def download ( self ) : if exists ( self . output ) : print ( f"The {self.filename} shapefile has already been downloaded" ) return self . output print ( f"Downloading the {self.filename} shapefile..." ) download = requests . get ( self . url ) zfile = zipfile . ZipFile ( io . BytesIO ( download . content ) ) zfile . extractall ( self . root ) return self . output
short_docstring: Download zip file and extract to data directory
short_docstring_tokens: Download zip file and extract to data directory
comment: """Download zip file and extract to data directory"""