Skip to content

Remove FutureWarning: Setting an item of incompatible dtype is deprecated #373

@amontanez24

Description

@amontanez24

Problem Description

The following future warning is raising and cluttering logs for SDV and CTGAN:

C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\ctgan\data_transformer.py:196: FutureWarning:

  

Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value '[0.09704364]' has dtype incompatible with float32, please explicitly cast to a compatible dtype first.

Expected behavior

  • Remove the warning

Metadata

Metadata

Assignees

Labels

internalThe issue doesn't change the API or functionality

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions