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

Give the merge copy parameter better documentation #4599

Open
cpcloud opened this issue Aug 18, 2013 · 7 comments
Open

Give the merge copy parameter better documentation #4599

cpcloud opened this issue Aug 18, 2013 · 7 comments

Comments

@cpcloud
Copy link
Member

cpcloud commented Aug 18, 2013

See this SO question

The docstring should indicate what is not being copied unnecessarily (Indexes, ndarrays, etc.)

@jreback
Copy link
Contributor

jreback commented Aug 18, 2013

IIRC I think the copy parameter only matters here is its a trivial merge and you actually do want it copied (kind I like a reindex with the same index)

@cpcloud
Copy link
Member Author

cpcloud commented Aug 18, 2013

yep here's the explanation:

if the index join is the same as both indexes in the join it will return None for the indexers and when _JoinUnit.reindex_block is called copy will only take effect if the indexer is None which means what you said: trivial merge

@cpcloud
Copy link
Member Author

cpcloud commented Aug 18, 2013

still should say something about that....definitely not what i just wrote but something more informative than what's there

@jreback jreback modified the milestones: 0.15.0, 0.14.0 Feb 18, 2014
@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 1, 2015
@datapythonista datapythonista modified the milestones: Contributions Welcome, Someday Jul 8, 2018
@moaraccounts
Copy link
Contributor

take

@moaraccounts
Copy link
Contributor

moaraccounts commented May 27, 2020

@jreback @cpcloud
I'm having trouble understanding how editing the merge copy parameter documentation resolves this. In the original SO question, OP is using concat, not merge.

It seems like the concat copy parameter needs adjustment, as running through the example from this indicates:

Note
It is worth noting that concat() (and therefore append()) makes a full copy of the data, and that constantly reusing this function can create a significant performance hit. If you need to use the operation over several datasets, use a list comprehension.

Maybe I'm missing something?

@jangorecki
Copy link

jangorecki commented May 27, 2020

@moaraccounts Maybe this issue is just asking for a different thing than linked SO is about. I subscribed to this issue seeking better "merge" "copy" documentation, not a "concat" copy.

@mroeschke mroeschke removed this from the Someday milestone Oct 13, 2022
@TheMellyBee
Copy link

Can this be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants