rename Questions

2

Solved

I have a pandas dataframe df1 with an index column and an unnamed series of values. I want to assign a name to the unnamed series. The only way to do this that I know so far is to export to df1.c...
Highcolored asked 12/12, 2016 at 8:15

6

Solved

I have a the following structure: src/ modules/ module1/ js/ main.js scss/ main.scss index.html module2/ js/ main.js scss/ main.scss index.html I'd like to run a grunt task to copy ...
Glair asked 7/3, 2013 at 12:20

2

Solved

I have a dataframe with columns id, feature_1, feature_2, feature_3 as follows. df = data.frame( id = sample(letters, 5), feature_1 = sample(1:10, 5), feature_2 = runif(5), feature_3 = rnorm(5)...
Oozy asked 19/3, 2021 at 18:41

4

Solved

The following code renames first column in the data set: require(dplyr) mtcars %>% setNames(c("RenamedColumn", names(.)[2:length(names(.))])) Desired results: RenamedColumn cyl disp hp dr...
Hollyanne asked 13/3, 2017 at 17:20

2

Solved

Suppose I have a folder named my_folder_old in /path/to/folder, how can I create a duplicate named my_folder_new in the same directory? EDIT Moreover if my_folder_new already exists, my_folder_ol...
Mole asked 26/10, 2015 at 10:48

6

I have figured out how to edit batches of files using REN in Windows 7 Command Prompt. However, this time, I am trying to add a prefix to all files but I am unable to do it. All files are tif files...
Arlindaarline asked 2/4, 2013 at 18:35

4

Solved

My company has a ClickOnce application that has been in use with our customers for about a year now. We're going through a re-branding and want to change the name of the application. However, just...
Vary asked 5/1, 2010 at 16:4

7

Solved

I like plyr's renaming function rename. I have recently started using dplyr, and was wondering if there is an easy way to rename variables using a function from dplyr, that is as easy to use as to ...
Cestoid asked 1/2, 2014 at 19:25

6

Solved

Is there a dead easy way to rename a collection in mongo? Something like: db.originalCollectionName.rename('newCollectionName'); And if not, what is the best way to go about effectively renaming...
Roswell asked 4/1, 2012 at 19:11

7

Solved

There is no option in the file menu to rename a workspace. Is the recommended practice to close eclipse, rename the folder, and re-open? I worry about some potential dangling references in configur...
Viv asked 1/3, 2011 at 14:52

4

I am connecting to my remote sftp using below command: sftp user@host After inputing password next I get sftp prompt i.e. sftp> My job is to move multiple files from directory A to direct...
Lucchesi asked 2/7, 2018 at 12:19

3

Solved

I have multiple zip files with names such as 001.zip, 002.zip, 003.zip and have the potential to go up to 999.zip. Each zip file has exactly one text file. I would like to extract each zip file usi...
Messina asked 24/7, 2012 at 15:59

2

Solved

Is there a way to rename the file in a FTP directory? I'm streaming live images from computer to FTP, but problem is that when it uploads the image to FTP it making instant replacement of a file. I...
Jolda asked 22/8, 2012 at 10:7

2

Solved

I'm having a problem with a set of data. I want to change the values of a column, only for certain values in the rows of data. My table has this structure: Var1 Var2 1 A High 2 A High 3 A High 4 ...
Critter asked 23/11, 2014 at 16:28

3

Solved

Is it possible to rename file when trying to download it? For example, I would like to store files to folders using their id's but when user downloads file I'd like to return the original filename....
Scorify asked 21/6, 2010 at 12:27

3

Similar questions have been asked many times in SO. But most answers suggested to do it manually, which is very time consuming. Any free tools that can rename projects (and directories) automatica...

4

I am trying to create a small Bash script to remove hyphens from a filename. For example, I want to rename: CropDamageVO-041412.mpg to CropDamageVO041412.mpg I'm new to Bash, so be gentle :] Th...
Charbonneau asked 15/4, 2012 at 0:56

2

Solved

Hey i'm trying to rename some columsn by adding "Last_" with the new version of dplyr but I keep getting this error Error: `across()` must only be used inside dplyr verbs. this is my cod...
Navarre asked 3/10, 2020 at 20:26

8

Solved

(Somewhat related question: Enter new column names as string in dplyr's rename function) In the middle of a dplyr chain (%>%), I would like to replace multiple column names with functions o...
Toughminded asked 21/5, 2015 at 19:39

2

Solved

I mirrored a GitHub project years ago. This project participated in the grand "master"-to-"main" branch renaming. I haven't touched my fork in a while, and I have a branch in my...
Gastrula asked 31/10, 2020 at 3:22

9

Rename all the files within a folder with prefix "Unix_" Suppose a folder has two files a.txt b.pdf then they both should be renamed from a single command to Unix_a.txt Unix_b.pdf
Violoncello asked 13/6, 2011 at 10:57

1

Solved

If I have a dataframe like: test = DataFrame(A = [1,2,3] , B= [4,5,6]) and I want to change only the name of A, what can I do? I know that I can change the name of all columns together by rename! ...
Horrific asked 15/10, 2020 at 12:25

1

Solved

I don't want to rename a remote branch, as described in Rename master branch for both local and remote Git repositories. How can I rename a local branch which hasn't been pushed to a remote b...
Norsworthy asked 5/10, 2020 at 19:51

3

Solved

I'm just trying to write a little application that takes a value from a file named 'DATA.DAT' and renames the folder which contains that file with that value. The .py script runs in another folder...
Fatness asked 20/9, 2011 at 14:59

4

Solved

I have a dataframe with many columns ending in the same suffix, and I want to use rename_at() to remove them all, but I can't figure it out. library(tidyverse) my_df <- tibble(id = c(1, 2), ja...
Priscella asked 1/9, 2020 at 22:55

© 2022 - 2024 — McMap. All rights reserved.