Questions tagged [renaming]
347 questions
4
votes
3 answers
Pandas changing order of columns after data retrieval
I would like to change the column names of a pd dataframe but I'm finding that the order of the columns change after data is retrieved. The below code specifies sector ETF symbols and fetches the data from yahoo finance.
The problem is that once I…
![](../../users/profiles/2179795.webp)
Merv Merzoug
- 949
- 1
- 13
- 27
4
votes
1 answer
move a branch path in git (change its name, not its code)
we have a branch on remote called release/service-release-2016
I want to rename the branch to release/completed/service-release-2016 for archiving and clarity.
How do I do this?
Everything I searched for interpreted this as moving around commits and…
![](../../users/profiles/4127646.webp)
Oliver Williams
- 4,165
- 3
- 25
- 59
4
votes
1 answer
Dotfuscator accessors renaming get and set
My issue is with Dotfuscator configuration for renaming. Imagine a class that would look like this:
Class MyClass
{
private int _propertyA;
private int _propertyB;
public int PropertyA
{
get{return _propertyA;}
…
![](../../users/profiles/1892410.webp)
user1892410
- 381
- 5
- 11
4
votes
4 answers
Rename several files in the BASH
I would like to rename files numbering: I have a files with '???' format I need to put them in '????'.
myfile_100_asd_4 to myfile_0100_asd_4
Thanks
Arman.
Not so elegant SOLUTION:
#/bin/bash
snap=`ls -t *_???`
c=26
for k in $snap
do
…
![](../../users/profiles/235125.webp)
Arman
- 4,387
- 10
- 38
- 63
4
votes
3 answers
Weird behaviour in PowerShell bulk file renaming
I'm new to PowerShell and recently I try to rename 120 files in a folder and I encounter a weird behavior.
What I have is files with named from 0001.txt, 0002.txt, ... 0120.txt a total of 120 files. I want to add an 'a' in front of each of the file…
![](../../users/profiles/2694100.webp)
L Z
- 65
- 1
- 7
4
votes
3 answers
Racket with-hash macro and rename transformers
I created this:
(define-syntax (with-hash stx)
(syntax-parse stx
[(_ obj:id ((~or key:id [new-key:id hash-key:id]) ...) body:expr ...+)
#'(let ([key (hash-ref obj 'key)] ...
[new-key (hash-ref obj 'hash-key)] ...)
…
![](../../users/profiles/140811.webp)
Scott Klarenbach
- 31,139
- 14
- 58
- 87
3
votes
2 answers
cakephp routes modify controllers name / fetching controllers name
I created a route which is analog to this one:
Router::connect("/backend/:controller/:action/*");
And now I want to route every controller that fits this pattern to be renamed to something like backend_:controller.
Somehow like…
![](../../users/profiles/1113497.webp)
Dennis
- 1,418
- 12
- 17
3
votes
1 answer
php file renaming loop
I run a ecommerce site, and I have tons of product images.
The naming rules are simple: productid-picnumber.
But sometimes theres gaps betweeen the picnumbers.
Example for the pictures for product id…
![](../../users/profiles/768384.webp)
Kristian Rafteseth
- 1,962
- 3
- 24
- 41
3
votes
4 answers
Does XSLT provide a means to identify xml elements by using regular expressions?
I have a sample xml file which looks like this:
--- before transformation ---
...
...
...
...…
![](../../users/profiles/762298.webp)
asna jarl
- 31
- 1
3
votes
2 answers
How do I rename multiple tags in TFS
I am using TFS 2017-R3. I am needing to rename some tags. I am looking for the process to change the tags in quantity not one at a time.
![](../../users/profiles/9692155.webp)
Russ
- 31
- 1
3
votes
2 answers
Select a specific part of file name move it to the beginning
I have some video lessons that I want to rename in a specific way with Python. Here is an example file name:
3D Graphics - Crash Course Computer Science #27-TEAtmCYYKZA.en"
I want to select "27" and move it to the beginning of the file name, and…
![](../../users/profiles/8131366.webp)
Özenç B.
- 562
- 1
- 4
- 17
3
votes
3 answers
how to rename a file in a directory using current directory
I want to rename a file (home/Desktop/ali/a/b.txt)
I wrote a bash file
#!/bin/bash
mv a/b.txt a/c.txt
and put it in ali directory,I navigate to ali directory in terminal but when I execute the bash file it can't find a/b.txt
I know mv…
![](../../users/profiles/8123168.webp)
mohammad reza
- 109
- 6
3
votes
1 answer
C# Replacing filenames containing "." with " " but removing the file extension
I am rename the files in a folder that contain a "." with a " ".
Expected result... Before: "I.am.testing.txt", After: "I am testing.txt"
Actual result... Before: "I.am.testing.txt", After: "I am testing txt"
The problem is that it also removes…
![](../../users/profiles/5900660.webp)
Conor Egan
- 367
- 1
- 2
- 16
3
votes
0 answers
EPPlus - How to rename a named range and maintain correct formulas?
I have an Excel file with a named range (just one cell). There are other cells who's formulas use this name. I am trying to programatically rename the cell using EPPlus. My first attempt I simply removed the old name and added the…
![](../../users/profiles/3295071.webp)
kilkfoe
- 395
- 2
- 10
3
votes
4 answers
identifier rename in java program
I need to programmatically rename identifiers within a given scope, for example, a method in java program. For example, given the following java function:
public void doSomething(){
int x = 10;
int y = x * 2;
int z = x + y;
}
after…
![](../../users/profiles/264996.webp)
Fahim
- 305
- 2
- 3
- 14