not able to see all columns and rows of a pandas DataFrame

+1 vote

Hi Guys,

I uploaded one csv file in my jupyter notebook. I created one dataframe in pandas to read that csv file. But I am not able to see all the columns and rows.

How can I see my whole dataset?

Thank You

Apr 8, 2020 in Machine Learning by akhtar
• 38,130 points
1,204 views

1 answer to this question.

0 votes

Hi@akhtar,

Your data set contains lots of rows and columns, but jupyter shows you some of your data by default. You can see your whole dataset by adding the below given codes.

import pandas as pd
pd.set_option('display.max_rows', None)
pd.set_option('display.max_columns', None)
pd.set_option('display.width', None)

Now try with this, it will work.

answered Apr 8, 2020 by MD
• 94,990 points
I have also the same problem, its solved by that code thanks a lot for help bro

Hi, @There,

Thank you for your contribution to the Edureka Community.

Register/Sign up on the community to gain points for further contributions. You may ask questions, answer, upvote, and downvote an answer. Each of these would fetch you points and you could be among the top contributors and win exciting merchandise from Edureka.

Cheers!

thankyou sooo much

Related Questions In Machine Learning

0 votes
1 answer
0 votes
0 answers

Not able to import images.

It show my syntax is incorrect.Please help ...READ MORE

May 14, 2020 in Machine Learning by sangeethstanly
• 120 points
78 views
0 votes
1 answer
+1 vote
2 answers

ValueError: Not enough values to unpack

Make the following changes in your script, ...READ MORE

answered Jun 24, 2019 in Machine Learning by Omkar
• 69,130 points
11,638 views
0 votes
1 answer

Python : Cannot Import Data using Pandas

So< if your error says: ...READ MORE

answered Dec 7, 2018 in Data Analytics by Upasana
• 8,620 points
3,091 views
0 votes
2 answers
+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, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,715 views
0 votes
1 answer

How can I train a model and calculate the accuracy of CBR algorithm?

Hi@Abubakar, You can find lots of documents on ...READ MORE

answered Oct 16, 2020 in Machine Learning by MD
• 94,990 points
57 views
+1 vote
1 answer

ValueError: could not convert string to float in Machine learning.

Hi@akhtar, You are trying to use constant variable ...READ MORE

answered Apr 14, 2020 in Machine Learning by MD
• 94,990 points
9,470 views