+
Skip to content

Feature request: Support disabling automatic type conversion #548

@kycutler

Description

@kycutler

Issue

CSV files may contain data that look like numbers, but should not be treated as such. For example, a column of US ZIP codes might contain e.g. 02210, but this should not be treated as the number 2210.

Data Wrangler currently uses pandas' default behavior for inferring column types from CSV files. So in the above example, pandas will infer the raw value 02210 as an integer and convert it to 2210 in the loaded dataframe.

Workaround

This can be worked around by directly modifying the code in the loading step after the data is first loaded and adding the argument dtype={'<column name here>':'S'} to interpret the affected column as a string:

Image

Feature request

This should not require directly modifying the code. There should be some simpler way to configure this from the UI and it should also be accessible from Viewing mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载