python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Conditional count with zero with dplyr
I'd like to count the use of Tool A in a data set, but also want to include the zero use of Tool A.
My data set example is as below;
ID <- c(1,1,2,3,3,3,4,5,5,5)
Tool <- c("A","B&...
HSC
Votes: 0
Answers: 1
Replace randomly 1000 NA Values in a dataframe column with 0s, without overwriting 1s
I am trying to randomly replace 1000 NA values in a dataframe column with 0s. The column is composed only of NAs and 1s and it looks like this:
Column
1 NA
2 1
3 NA
4 NA
5 NA
6 1 ...

FlipAD
Votes: 0
Answers: 1
Python - Format fixed length with data coming from a Excel
I am pulling data from a spreadsheet and one of the columns has leading zeroes. The zeros get trimmed when the data comes in. I need the preceding zeroes for the data transfer. Also, I need the format...
Philomathean
Votes: 0
Answers: 1