def read_csv(self, file: str, table: str, libref: str ="<STR_LIT>", nosub: bool =False, opts: dict = None) -> '<STR_LIT>':
opts = opts if opts is not None else {}<EOL>code  = "<STR_LIT>"<EOL>if file.lower().startswith("<STR_LIT:http>"):<EOL><INDENT>code += "<STR_LIT>"<EOL><DEDENT>code += "<STR_LIT>"+file+"<STR_LIT>"<EOL>code += "<STR_LIT>"<EOL>if len(libref):<EOL><INDENT>code += libref+"<STR_LIT:.>"<EOL><DEDENT>code += table+"<STR_LIT>"+self._sb._impopts(opts)+"<STR_LIT>"<EOL>if nosub:<EOL><INDENT>print(code)<EOL><DEDENT>else:<EOL><INDENT>ll = self.submit(code, "<STR_LIT:text>")<EOL><DEDENT>
This method will import a csv file into a SAS Data Set and return the SASdata object referring to it.
file    - eithe the OS filesystem path of the file, or HTTP://... for a url accessible file
table   - the name of the SAS Data Set to create
libref  - the libref for the SAS Data Set being created. Defaults to WORK, or USER if assigned
opts    - a dictionary containing any of the following Proc Import options(datarow, delimiter, getnames, guessingrows)