Add a feature for inserting a column
See original GitHub issueIt would be really useful if there was a method that could insert a column into an existing Dataframe between two existing columns. I know about .addColumn, but that seems to place the new column at the end of the Dataframe.
For example:
df.print()
A | B
======
7 | 5
3 | 6
df.insert({ “afterColumn”: “A”, “newColumnName”: “C”, “data”: [4,1], inplace: true }) df.print()
A | C | B
==========
7 | 4 | 5
3 | 1 | 6
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (6 by maintainers)
Top Results From Across the Web
13 Ways to Insert a Column in Microsoft Excel
Select multiple adjacent columns by clicking on the first column heading then holding the Shift key and clicking on the last column. Right-click...
Read more >5 ways to insert new columns in Excel - Ablebits
1. To insert a column, you need to select the necessary one and right click on it. 2. Then pick Insert -> Table...
Read more >5 Ways to Insert New Columns in Excel (including Shortcut ...
Insert a New Column (Keyboard Shortcut) · Select a cell in the column to the left of which you want to add a...
Read more >How to Insert Column in Excel - YouTube
If you find it hard to figure out how to insert a column into an Excel table, you're in the right place! After...
Read more >How to Add a Column in Excel: Full Guide with Shortcuts
1. Right-click on a column. 2. Click Insert. You can also right-click on the cell or do it from the ribbon menu. Read...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah sure. I’m aware of that
Splice by default will mutate the array, so I’m saying that you should make a copy first.