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

add index to the DataFrame #121

Open
feiyu-london opened this issue Jan 3, 2021 · 0 comments
Open

add index to the DataFrame #121

feiyu-london opened this issue Jan 3, 2021 · 0 comments

Comments

@feiyu-london
Copy link

Sometimes I would need to assign an index to both existing dataframe and new dataframe (most likely 1:n series), so that these two dataframes can be joined together.

Also the existing dataframe might be updated through operations, so a new index might be required so that the updated dataframe can be properly searched and referenced.

In both cases, being able to add a new index (e.g. a series of 1:n) conveniently can be good.

The solution can be found in SQL operation - alter table [dataframe] add new column and assign int auto_increment.

Hope this makes sense.

Regards,

Fei from the U.K.

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

No branches or pull requests

1 participant