python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Identifying column for data in a csv fille in a Python dataframe statement
I have tried many things to create a Python dataframe from 4 variables on a csv file: Date (mm/dd/yyyy format), floating point variables Reserves, FF, IORB. All tries result in error message that I ha...
nahammond
Votes: 0
Answers: 0
How to add variables with changing names through for loop in python?
Consider two or more variables whose names changes with every iteration of for loop. Now all these lists are to be summed i.e., key = [33, 55, 67]
a_1 = int\[21,41,51\]
a_2 = int\[1, 2, 3\]
a_3 = ...
Ali Khan
Votes: 0
Answers: 1
How to make a list of variables the header for a data frame [R]
I have a data frame with no headers. It has 561 columns.
It has the generic headers like so
V1 V2 ... V561
I also have a txt. file that has all of the variable names for that data frame. They are all...

LoveMYMAth
Votes: 0
Answers: 0
How to eval(parse(text= var_name), envir= df) if var_name is a number?
Using eval I make different stuff with variables. Here is an example where simply the variable a is returned without any transformations:
df <- data.frame(1:10); var_name <- "a"
names(...

Ingo Pingo
Votes: 0
Answers: 1