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

Merge & Stack example is incorrect #431

Closed
reza1615 opened this issue Feb 15, 2021 · 2 comments
Closed

Merge & Stack example is incorrect #431

reza1615 opened this issue Feb 15, 2021 · 2 comments

Comments

@reza1615
Copy link

image
the above example should be

df1 = pd.DataFrame({
    "A": ["A0", "A1", "A2", "A3"],
    "B": ["B0", "B1", "B2", "B3"],
    "C": ["C0", "C1", "C2", "C3"],
    "D": ["D0", "D1", "D2", "D3"]},
    index=[0, 1, 2, 3]
)
df2 = pd.DataFrame({
	"A": ["A4", "A5", "A6", "A7"],
	"B": ["B4", "B5", "B6", "B7"],
	"C": ["C4", "C5", "C6", "C7"],
	"D": ["D4", "D5", "D6", "D7"]},
	index=[4, 5, 6, 7],
)
df3 = pd.DataFrame({
	"A": ["A8", "A9", "A10", "A11"],
	"B": ["B8", "B9", "B10", "B11"],
	"C": ["C8", "C9", "C10", "C11"],
	"D": ["D8", "D9", "D10", "D11"]},
	index=[8, 9, 10, 11]
)
result = pd.concat([df1, df2, df3])
@aschonfeld
Copy link
Collaborator

Good catch

aschonfeld added a commit that referenced this issue Feb 16, 2021
@aschonfeld
Copy link
Collaborator

Fixed in v1.36.0

AnthraX1 added a commit to AnthraX1/dtale that referenced this issue Feb 27, 2021
* man-group#261: Merging/Stacking UI

* bumped version numbers 1.35.0

* Fix missing single quote in dependencies string

# Fixes:

```
Resolving dependencies... (0.2s)<debug>PackageInfo:</debug> Invalid constraint (scikit-learn (>='0.21.0)) found in dtale-1.34.0 dependencies, skipping
```

* change global_stage into interfaces

* man-group#430: replace empty strings with nans when converting dates to timestamp floats

* man-group#431: fixed stacking code example

* fixed formatting and some updates

* man-group#432: updated calls to "get_instance" in merge code snippets

* man-group#433: fixed exception message display in merge UI

* fix format and lint

* Update dtale/global_state.py

Co-authored-by: Andrew Schonfeld <andrew.schonfeld1@gmail.com>

* format

* man-group#434: Additional PPS formatting

* add view data by name

* fix tests

* fix dash path and revert json_timestamp

* fix test_get_pps_matrix

* fixed recursion error in redis global state

* fixes for python2.7 test failures

Co-authored-by: Andrew Schonfeld <andrew.schonfeld1@gmail.com>
Co-authored-by: Riley Shea <rileymshea@gmail.com>
Co-authored-by: Anthr@X <anthrax1@users.noreply.github.com>
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