def dataframe2sasdata(self, df: '<STR_LIT>', table: str = '<STR_LIT>', libref: str = '<STR_LIT>',<EOL>results: str = '<STR_LIT>', keep_outer_quotes: bool = False) -> '<STR_LIT>':
if libref != '<STR_LIT>':<EOL><INDENT>if libref.upper() not in self.assigned_librefs():<EOL><INDENT>print("<STR_LIT>")<EOL>return None<EOL><DEDENT><DEDENT>if results == '<STR_LIT>':<EOL><INDENT>results = self.results<EOL><DEDENT>if self.nosub:<EOL><INDENT>print("<STR_LIT>")<EOL>return None<EOL><DEDENT>else:<EOL><INDENT>self._io.dataframe2sasdata(df, table, libref, keep_outer_quotes)<EOL><DEDENT>if self.exist(table, libref):<EOL><INDENT>return SASdata(self, libref, table, results)<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
This method imports a Pandas Data Frame to a SAS Data Set, returning the SASdata object for the new Data Set.

:param df: Pandas Data Frame to import to a SAS Data Set
:param table: the name of the SAS Data Set to create
:param libref: the libref for the SAS Data Set being created. Defaults to WORK, or USER if assigned
:param results: format of results, SASsession.results is default, PANDAS, HTML or TEXT are the alternatives
:param keep_outer_quotes: the defualt is for SAS to strip outer quotes from delimitted data. This lets you keep them
:return: SASdata object