Questions tagged [rename]

For anything regarding renaming. Could be applicable to a wide range of subjects. Should be replaced by a more domain-specific tag if applicable.

Questions regarding renaming one or many files, directories, projects, variables, users, data cells, and version control conflicts arising from renaming should be tagged with rename.

To rename a file means to give an existing file a new name without changing any of its content. In UNIX systems, this is done with the mv command.

Renaming a variable will usually require a find-and-replace edit in existing code.

5438 questions
13
votes
2 answers

WindowsError: [Error 2] The system cannot find the file specified

I am trying to rename all of the filenames within a folder so that they no longer have +'s in them! This has worked many times before but suddenly I get the error: WindowsError: [Error 2] The system cannot find the file specified at line 26 Line 26…
Alice Duff
  • 667
  • 6
  • 11
  • 18
13
votes
1 answer

After rename column get keyerror

I have df: df = pd.DataFrame({'a':[7,8,9], 'b':[1,3,5], 'c':[5,3,6]}) print (df) a b c 0 7 1 5 1 8 3 3 2 9 5 6 Then rename first value by this: df.columns.values[0] = 'f' All seems very…
jezrael
  • 822,522
  • 95
  • 1,334
  • 1,252
13
votes
1 answer

What is the parameter "index" in Pandas.DataFrame.rename method?

Pandas DataFrame has a rename method which takes a parameter named "index." I don't understand the description of the parameter in the documentation: DataFrame.rename Specifically, I'm using it like the example on the documentation web…
user3731622
  • 4,844
  • 8
  • 45
  • 84
13
votes
2 answers

Pandas: Is there a way to use something like 'droplevel' and in process, rename the other level using the dropped level labels as prefix/suffix?

Screenshot of the query below: Is there a way to easily drop the upper level column index and a have a single level with labels such as points_prev_amax, points_prev_amin, gf_prev_amax, gf_prev_amin and so on?
hkhare
  • 225
  • 3
  • 10
13
votes
3 answers

How to rename a folder in c# which is currently opened by windows explorer

When renaming a folder in C#, System.IO.Directory.Move throws System.IO.IOException (message "access denied") if that folder or any subfolder is currently opened by a (Windows 7) explorer window. Using the commandline RENAME fails, too. Using a…
user2261015
  • 440
  • 4
  • 17
13
votes
5 answers

How to rename project in RubyMine

I'm running Rubymine 5.4.x on Windows 7 (but that shouldn't really matter for this question) and I have managed to delete projects and seemingly rename them before, but I am stuck this time. In the past, this is what I've done: rename all…
Flak DiNenno
  • 2,193
  • 4
  • 30
  • 57
13
votes
4 answers

Using variable value as column name in data.frame or cbind

Is there a way in R to have a variable evaluated as a column name when creating a data frame (or in similar situations like using cbind)? For example a <- "mycol"; d <- data.frame(a=1:10) this creates a data frame with one column named a rather…
JasonMond
  • 1,440
  • 1
  • 16
  • 30
12
votes
2 answers

Disable Git Rename Detection

I have a file, foo.txt Create and checkout branch 'branch_A' git mv foo.txt bar.txt followed by git add -A then git commit -m "renamed foo.txt" Checkout master, git checkout master remove foo.txt and commit. Now merge branch_A, git merge…
Ken Hirakawa
  • 7,831
  • 10
  • 38
  • 49
12
votes
2 answers

How to rename/refactor a variable in Eclipse PDT in a Netbeans-like way

In the NetBeans IDE, changing a variable name in the parameters of a function also changes all occurrences of that name in the function. How can I get that behavior with Eclipse PDT? There is a Refactor → Rename item in the context menu, but it let…
12
votes
1 answer

How to rename a file in Android knowing only its media content Uri

In Android Q the MediaStore.Files.FileColumns.DATA field has been deprecated, and may be null or apps may not have the rights to read it, therefore is there a way to rename the filename section (not the path) of a file using only its media content…
PerracoLabs
  • 16,449
  • 15
  • 74
  • 127
12
votes
3 answers

How to change the name of the Django admin page?

I'm studying Django. I saw django tutorial part7 and I wanted to rename the name of the django admin page. So, I did it but it hasn't worked..... mysite/mysite/settings.py: TEMPLATES = [ { 'BACKEND':…
user9890549
12
votes
4 answers

Python Edit/Rename Key Names in .json

Is there a way to change the Key name? I need to change the name "Class123" like it is in the Example. I can change the Value but I don't know how to change the key name. Example .json : { "Class123": "classvalue", "name1": { …
Kaira Asia
  • 143
  • 1
  • 1
  • 4
12
votes
6 answers

Access is Denied When Renaming Folder

I don't know if this is the right place to ask this question, but I am going to ask it anyway. I have a frequent problem when I try to rename one of my folders; it says access is denied. I have full administrative rights on my computer. The problem…
12
votes
4 answers

Rename branch in Gitkraken?

How do you rename a branch in Gitkraken? I know how to do it from the CLI, can you do it from the GUI (or terminal - if there is some - in Gitkraken?) Thanks!
RisingSun
  • 2,407
  • 2
  • 16
  • 11
12
votes
2 answers

Oracle - drop table constraints without dropping tables

I'm doing some bulk migration of a large Oracle database. The first step of this involves renaming a whole load of tables as a preparation for dropping them later (but I need to keep the data in them around for now). Any foreign key constraints on…
Submonoid
  • 2,809
  • 2
  • 20
  • 25