8000 Series index is not retained after sorting values · Issue #357 · javascriptdata/danfojs · GitHub
[go: up one dir, main page]

Skip to content
Series index is not retained after sorting values #357
Closed
@Emporea

Description

@Emporea

sortValues seems inconvinient because it does reset the index and its hard to reindex it if I only have numbers...

The Index gets ignored too often in general for example:

Series.toJSON() or toCSV() only includes the values. This is inconvinient. There should be an option to not drop the index.
Pandas doesn't drop the index either.

Also is it possible to combine the functions valueCounts() and sortValues, just like pandas does? The missing index when passing a Series makes further calculations unnecessarily complicated..

If it is intended to leave a passed Series 1 dimensional there should be atleast a method that converts a Series to a Dataframe by adding a new Index. This is done by reindex() in pandas, but in danfojs this only seems to drop the current index and give it new values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0