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

Set Index in Dataframe #13

Open
AriJeannin opened this issue Oct 11, 2022 · 1 comment
Open

Set Index in Dataframe #13

AriJeannin opened this issue Oct 11, 2022 · 1 comment

Comments

@AriJeannin
Copy link

AriJeannin commented Oct 11, 2022

Hi,

Thanks for your job!

Just a little suggestion for the use of setting index into the Dataframe, makes it easier (more beautifull) to get attributes :)

Here an exemple

a = dimap.AbstractedMetadata.dataframe
a = a[a.Name == "PASS"].Value.iat[0]

o = dimap.AbstractedMetadata.dataframe
o = o.set_index("Name")
o = o.at["PASS", "Value"]  

print(a==o)
>>>True

Best,
Ari

@pbrotoisworo
Copy link
Owner

Hi @AriJeannin!

Thank you for this suggestion. This looks like a good idea. I will look into this when I have the time.

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

2 participants