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

feat(UI): Show the name of the indexes in dataframe widget #495

Open
thomass-dev opened this issue Oct 15, 2024 · 2 comments
Open

feat(UI): Show the name of the indexes in dataframe widget #495

thomass-dev opened this issue Oct 15, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@thomass-dev
Copy link
Collaborator

thomass-dev commented Oct 15, 2024

          In a next iteration, i propose to nicely show the name of the indexes. For instance, 

image

Originally posted by @thomass-dev in #493 (comment)


It should be pertinent on a dataframe with multi-indexes.

In [6]: import pandas as pd
   ...: 
   ...: df = pd.DataFrame([{"age": ">70", "number": "1M", "gender": "M"}])
   ...: df.index = pd.MultiIndex.from_arrays([["france"], ["paris"], ["1"]], names=('country', 'city', 'district'))

In [7]: df
Out[7]: 
                        age number gender
country city  district                   
france  paris 1         >70     1M      M
@thomass-dev
Copy link
Collaborator Author

thomass-dev commented Oct 15, 2024

@sylvaincom @MarieS-WiMLDS is it relevant for a DS to have details over multi-index?

@MarieS-WiMLDS
Copy link
Contributor

yes, it can happen sometimes to use dataframes with multi-indexes due to group_by!

@tuscland tuscland added the enhancement New feature or request label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants