Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
copy only some columns to new dataframe in r
Raj
Programming language:
Whatever
2021-03-30 05:10:03
0
Q:
copy only some columns to new dataframe in r
Obfuskater
Code:
Whatever
2021-07-09 14:34:44
new = old[['A', 'C', 'D']].copy()
0
Nicholas Shanks
Code:
Whatever
2021-02-13 13:00:55
new = pd.DataFrame([old.A, old.B, old.C]).transpose()
0
Tags
data
new
frame
columns
dataframe
Related
combine ro columns in r
how to combine all columns into one column in r
reorder columns in r
copy a dataframe in r
concatenate multiple dataframes in R
how to extract rows and column of dataframe in r
R make column of rownames
add two column values of a datframe into one
add column to df from another df
combine columns in r
New to Communities?
Join the community