Skip to content

Reading from NoCode to pandas DF only returns one datatype object #4

Open

Description

@datitran

At the moment when we use read_nocode() and assign it to a variable all types are only object, ideally, we would pass the dtypes from nocode to the pandas DataFrame.

Activity

  1. added
    enhancement
    on Sep 24, 2022
  2. datitran commented on Sep 24, 2022

    @datitran
    ContributorAuthor

    I'm using a bit of "trick" here to achieve this but this needs to be improved. After loading the table from nocode, we load in again with the csv parser from Pandas.

    # To-do: infer type from nocode
    table_data.to_csv(csv_buffer, index=None)
    csv_buffer.seek(0)
    table_data_type_inferred = pd.read_csv(csv_buffer)
    ``
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions