Skip to content

Commit

Permalink
Fix for the join_axes on concat method
Browse files Browse the repository at this point in the history
  • Loading branch information
martineserios committed Jun 7, 2020
1 parent 5b00ebd commit 4a5f96f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions swmmtoolbox/swmmtoolbox.py
Expand Up @@ -805,20 +805,6 @@ def extract(filename, *labels):
)
)
result = pd.concat(jtsd, join="outer", axis=1).reindex(jtsd[0].index)

# previous
# result = pd.concat(jtsd, axis=1, join_axes=[jtsd[0].index])

# https://github.com/pandas-dev/pandas/issues/21951
# ## only works with list-like join_axes
# pd.concat([one, two], join='outer', axis=1, join_axes=[two.index])
# # a b b c
# # 1 2.0 3.0 10 11
# # 2 NaN NaN 12 13

# ## cleaner with reindex?
# pd.concat([one, two], join='outer', axis=1).reindex(two.index)
# # a b b c
return result


Expand Down

0 comments on commit 4a5f96f

Please sign in to comment.