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

Drop indices on pandas dataframes #223

Open
bmschmidt opened this issue Oct 11, 2023 · 4 comments
Open

Drop indices on pandas dataframes #223

bmschmidt opened this issue Oct 11, 2023 · 4 comments

Comments

@bmschmidt
Copy link
Collaborator

Adding a dataframe gives this error:

ValueError: Underscore fields are reserved for Atlas internal use: __index_level_0__

but if we just run reset_index() before uploading it'll be fine.

@hvsesha
Copy link

hvsesha commented Oct 19, 2023

hi in which file you are getting this error Kindly specify

@bmschmidt
Copy link
Collaborator Author

This is an error thrown from data_inference.py in some cases when a pandas frame is uploaded.

@patschw
Copy link

patschw commented Mar 15, 2024

Hi, I have the same problem with the map_data function. I am passing a numpy embedddings array and a pandas df

dataset = atlas.map_data(data=df_filtered,
embeddings=df_filtered.loc[:, 'dim_0':'dim_199'].to_numpy(),
id_field='word',
description="A test map of some words from Weimar to BRD 1" )

@bmschmidt
Copy link
Collaborator Author

Thanks for the report. We'll prioritize fixing this, but I think that if you run reset_index() on your df before passing it to an Atlas method, it will hopefully resolve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants