Skip to content

Error when columns contains only numbers. PR exists. #738

@gszecsenyi

Description

@gszecsenyi

Environment Details

Please indicate the following details about the environment in which you found the bug:

  • RDT version: latest
  • Python version: 3.9.6
  • Operating System: OSX

Error Description

In the case where the column names contain only numbers, typically when scaling the data, the code doesn't work well because the first value of the variable will be a numeric value, not a string, to which you cannot append a string later.

Steps to reproduce

Create a Pandas DF, which contains only numbers as column names.

synthesizer = SingleTablePreset(
    metadata,
    name='FAST_ML'
)

synthesizer.fit(
    data=test_df
)

synthetic_data = synthesizer.sample(
    num_rows=500
)

synthetic_data.head()

I created a pull request: #737

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions