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

Equivalent to the Excel fill handle #22993

Closed
ghost opened this issue Oct 4, 2018 · 4 comments
Closed

Equivalent to the Excel fill handle #22993

ghost opened this issue Oct 4, 2018 · 4 comments
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Oct 4, 2018

Code Sample, a copy-pastable example if possible

df.col_name.fill_down(val, start_row = 0, end_row= end)
df.loc[row_idx].fill_right(val, start_col = 0, end_col = last)

Problem description

It would be nice if there were an analog for the excel fill handle. I am not an experienced programmer and I don't want to imply that I think the functionality should be implemented the way I suggest above, but it would be nice to have for those coming from excel to pandas. If the val were a list, maybe it could fill repeats of the list like the fill series works in excel.

Expected Output

Filled values from the desired start column/row to the end or otherwise declared column/row

@svenharris
Copy link
Contributor

svenharris commented Oct 4, 2018

I think that's a really interesting analogy, but I think you can get that functionality in a straightforward fashion using .iloc and other basic indexing operations

@TomAugspurger
Copy link
Contributor

Agreed with @svenharris.

If anyone is interested, this would make for a nice cookbook entry: http://pandas.pydata.org/pandas-docs/stable/cookbook.html

We could perhaps expand those into a "Comparison with Excel" page, or "pandas for excel users".

@TomAugspurger TomAugspurger modified the milestones: 0.24.0, Contributions Welcome Oct 4, 2018
@mroeschke mroeschke reopened this Oct 4, 2018
@rotuna
Copy link

rotuna commented Oct 8, 2018

Hi,

I would like to do this.

@jreback jreback modified the milestones: Contributions Welcome, 1.3 Dec 21, 2020
@simonjayhawkins
Copy link
Member

closed in #38554

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

Successfully merging a pull request may close this issue.

6 participants