You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using sd2df() to transfer a single character column with missing values, all non-missing rows are dropped.
To Reproduce
Steps to reproduce the behavior:
Submit the following code
importsaspyimportpandasaspdprint(saspy)
#> <module 'saspy' from '/home/user/.virtualenvs/r-saspy/lib/python3.12/site-packages/saspy/__init__.py'>print(saspy.SAScfg)
#> /home/user/.virtualenvs/r-saspy/lib/python3.12/site-packages/saspy/sascfg_personal.pyprint(saspy.list_configs())
#> ['/home/user/.virtualenvs/r-saspy/lib/python3.12/site-packages/saspy/sascfg_personal.py']sas=saspy.SASsession()
#> Using SAS Config named: oda#> SAS Connection established. Subprocess id is 52082#> print(sas)
#> Access Method = IOM#> SAS Config name = oda#> SAS Config file = /home/user/.virtualenvs/r-saspy/lib/python3.12/site-packages/saspy/sascfg_personal.py#> WORK Path = /saswork/SAS_work65D200002B81_odaws02-usw2-2.oda.sas.com/SAS_work830300002B81_odaws02-usw2-2.oda.sas.com/#> SAS Version = 9.04.01M7P08062020#> SASPy Version = 5.102.1#> Teach me SAS = False#> Batch = False#> Results = Pandas#> SAS Session Encoding = utf-8#> Python Encoding value = utf-8#> SAS process Pid value = 11137#> SASsession started = Fri Mar 21 17:38:09 2025#> #> example=pd.DataFrame({'A': ["hello", None, "hi"]})
sas.df2sd(example, "example", "work")
#> Libref = work#> Table = example#> Dsopts = {}#> Results = Pandassas.submitLST("PROC PRINT DATA = example; RUN;", results="TEXT")
#> #> The SAS System Friday, March 21, 2025 10:38:00 PM 8#> #> Obs A#> #> 1 hello#> 2 #> 3 hi #> #> sas.sd2df("example", "work")
#> A#> 0 hello#> 1 hi
See that when using sd2df() missing rows are dropped instead of being retained as a None value.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using
sd2df()
to transfer a single character column with missing values, all non-missing rows are dropped.To Reproduce
Steps to reproduce the behavior:
sd2df()
missing rows are dropped instead of being retained as a None value.The text was updated successfully, but these errors were encountered: