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,620 points
53 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 3 days ago 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
36 views
0 votes
1 answer

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

You have various options to count the ...READ MORE

answered Apr 12, 2018 in Data Analytics by darklord
• 6,140 points
78 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
203 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 168 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
28 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
27 views