How can I find number of rows in a dataframe, and how to find the number of rows that dont have null values

0 votes
How can I find number of rows in a dataframe, and how to find the number of rows that dont have null values
Oct 11, 2018 in Data Analytics by Anmol
• 1,610 points
82 views

2 answers to this question.

0 votes

To know the number of columns in a dataframe use the function NCOL()

To omit the null value indexes out of the result use the function NCOL(na.omit(data_frame_name))

answered Oct 11, 2018 by Anmol
• 3,620 points
0 votes
Use nrow() to find number of rows and ncol() or length() to find the number of columns in a dataframe.

Try using nrow(df) - length(which(is.na(df))) to find number of rows with no nulls.
answered Aug 14 by anonymous

Related Questions In Data Analytics

0 votes
3 answers

Code snippet to find number of null values in each column in a dataframe in R

colSums(is.na(data_frame_name)) will return you number of nulls ...READ MORE

answered Jul 5 in Data Analytics by sindhu
159 views
0 votes
2 answers

How to count the number of elements with the values in a vector?

Use dplyr function group_by(). > n = as.data.frame(num) > ...READ MORE

answered Aug 21 in Data Analytics by anonymous
• 31,840 points
129 views
0 votes
1 answer
0 votes
1 answer

How can I increase the number of axis ticks in R ?

You can try to override ggplots default ...READ MORE

answered May 30, 2018 in Data Analytics by zombie
• 3,690 points
347 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 332 views
0 votes
1 answer

How can I find number of columns in a dataframe

To know the number of columns in ...READ MORE

answered Oct 11, 2018 in Data Analytics by Anmol
• 3,620 points
37 views
0 votes
1 answer

How can you find total number of null values in a dataset column wise?

You can write a custom sapply function ...READ MORE

answered Oct 12, 2018 in Data Analytics by Anmol
• 3,620 points
55 views