Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gszecsenyi opened this issue Nov 7, 2023 · 0 comments
Open

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

gszecsenyi opened this issue Nov 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@gszecsenyi
Copy link

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

@gszecsenyi gszecsenyi added bug Something isn't working new Label applied to new issues labels Nov 7, 2023
@gszecsenyi gszecsenyi changed the title Error when columns contains only numbers. Error when columns contains only numbers. PR exists. Nov 7, 2023
@amontanez24 amontanez24 removed the new Label applied to new issues label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants