Skip to content

Issues with the round method on SASDataFrame objects #141

Closed
@pestyld

Description

@pestyld

There seems to be an issue with the round method on a SASDataFrame object.

For example, i'll load the following file as a CAS Table

castbl = conn.read_csv(r'https://support.sas.com/documentation/onlinedoc/viya/exampledatasets/cars.csv', casout = {'name':'hmeq', 'caslib':'casuser', 'replace':True})

Then i'll execute the describe and round methods on the CASTable objects. The describe method returns a SASDataFrame, and the round method should round that DataFrame.

castbl.describe().round()
The results show it makes all the values NaN
Round Describe

I also tested this with the head method on a CASTable object. I get this error:
castbl.head().round()
Error

If you use traditional Pandas and create a traditional DataFrame, the round method works each time.

df = pd.read_csv(r'https://support.sas.com/documentation/onlinedoc/viya/exampledatasets/cars.csv')
df.describe().round()
df.head().round()

dataframeround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions