How do I change display options in pandas?

  Рет қаралды 42,383

Data School

Data School

Күн бұрын

Пікірлер: 66
@LonglongFeng
@LonglongFeng 7 жыл бұрын
the best and most detail-oriented tutorial I've seen on KZbin. thanks
@dataschool
@dataschool 7 жыл бұрын
You are very welcome! Glad the videos are helpful to you!
@fernandai.b.140
@fernandai.b.140 2 жыл бұрын
Thanks for the video, it is clear and easy to understand 👍
@dataschool
@dataschool 2 жыл бұрын
Glad it helped!
@noel2577
@noel2577 5 жыл бұрын
I have been hooked to your videos like a tv show ever since I watched the first one and I want to say that not only are these videos extremely useful and valuable but they are just as much entertaining as well. btw I've been hearing about some other, though not free, really powerful data analysis tools such as Alteryx and Pathwise. would absolutely love to watch if you create videos on those.
@dataschool
@dataschool 5 жыл бұрын
Thanks very much for your kind words! Also thanks for your suggestions 👍
@hephepiyey
@hephepiyey 3 жыл бұрын
Hello there! Thank you for the explanation. So I was wondering if it's possible to set the column width to its max to show the numbers because I am seeing +06 in my column and I really wanted to show everything. Is that possible? Thank you!
@sindhumohandas1479
@sindhumohandas1479 4 жыл бұрын
Truly helpful video.. thankyou so much😊..
@dataschool
@dataschool 4 жыл бұрын
Glad it was helpful!
@marty590
@marty590 8 жыл бұрын
Thanks Kevin.
@dataschool
@dataschool 8 жыл бұрын
You're very welcome! Hope it was helpful to you!
@AbdallahAnalyst
@AbdallahAnalyst 8 ай бұрын
Thank you so much for this awesome playlist it is really helpful
@dataschool
@dataschool 8 ай бұрын
Glad it was helpful!
@Gargi_3106
@Gargi_3106 Ай бұрын
While using the get_option on max_rows I also got 60 back but my pandas is displaying only 10 rows in its default view. What is the possible explanation? Could you pls help with that
@PocketInfinite
@PocketInfinite 5 жыл бұрын
Is it possible to have it display in a nice table in IDLE like how it does in Jupyter? Jinja just won't work for me...
@dataschool
@dataschool 5 жыл бұрын
I'm not sure, sorry!
@fadilyassin4597
@fadilyassin4597 Жыл бұрын
thank you for your videos very good explanations , can you please tell us how you show the grid in the Dataframe, your DataFrame looks like excel sheet please, thank you
@dataschool
@dataschool Жыл бұрын
Great question! The formatting depends on your coding environment. I'm using Jupyter.
@saikannan665
@saikannan665 3 жыл бұрын
in my idle pandas the spaces between two columns is clumsy how can correct it can you please help me with it
@meghasyam427
@meghasyam427 3 жыл бұрын
Hi Kevin, for somereason pd.set_option('display.float_format', '{:,}'.format) is not working for me nor throwing an error. The format is not getting applied. Can you help
@dataschool
@dataschool 3 жыл бұрын
Not sure off-hand, I'm sorry!
@sinabaghaei3504
@sinabaghaei3504 4 жыл бұрын
Thanks dear Kevin for explanation. My pandas File doesn't show set_option for numbers more than 10. it just shows None and less than 10. Can you please explain to me why is that? I use panda 1.1.3
@biganubhav
@biganubhav 3 жыл бұрын
How do you display the df in this nice table-like style within the jupyter notebook?
@dataschool
@dataschool 3 жыл бұрын
I think it depends on the version of Jupyter notebook you are using.
@benogidan
@benogidan 7 жыл бұрын
pd.set_option('display.float_format','{:,.0f}'.format) will get the decimal points off
@dataschool
@dataschool 7 жыл бұрын
Good to know, thank you!
@PavanKumar-wx6nl
@PavanKumar-wx6nl 4 жыл бұрын
How do i apply complete back ground color to entire pivot table with customized alignments inside text?
@nelson3391
@nelson3391 4 жыл бұрын
Thank you for the excellent explanation.
@shivamkakkar4779
@shivamkakkar4779 3 жыл бұрын
I want to know how your columns and rows are coming beautifully? As for me there are no lines when I run the CSV file in jupyter notebook
@dataschool
@dataschool 3 жыл бұрын
Depends on the version of Jupyter notebook
@BobBelford
@BobBelford 4 ай бұрын
Why does the following only change precision on Fare and not Age, they both are Float64 objects? (I do not see where we specify the column, so would think this would affect all float data types) # overwrite the 'precision' setting to display 2 digits after the decimal point of 'Fare' pd.set_option('display.precision', 2) train.head() thanks for these great tutorials
@fernandomancio2148
@fernandomancio2148 5 жыл бұрын
Great stuff! Really helpful! Tks
@dataschool
@dataschool 5 жыл бұрын
You're welcome!
@rajarshi_4479
@rajarshi_4479 5 жыл бұрын
How do we select the first 4 digits of each values in a column which is consisting of 10 digit numbers..can you plz make a video on it.. It's been of great help from all your videos
@dataschool
@dataschool 5 жыл бұрын
Use a string method. See this video: kzbin.info/www/bejne/mKDJknZmfsieftE
@suhasnalawade344
@suhasnalawade344 4 жыл бұрын
Thank you , information helped me
@kleczekr
@kleczekr 8 жыл бұрын
Hello Kevin! I am impressed by the quality of the material you provide on your channel. I have a brief question when it comes to the number formatting, which you explained in the video. Would it be difficult to introduce commas in non-standard places, e.g. to indicate Indian lakhs and crores, so that, e.g., to write 1 lakh rupees as 1,00,000; and 1 crore rupees as 1,00,00,000? Thank you for the wonderful series! Rafal
@dataschool
@dataschool 8 жыл бұрын
Thanks for your kind words! Regarding your question, it's not clear to me whether that is easy or even possible. I'd suggest reading the Python documentation on string formatting to find out: docs.python.org/2/library/string.html#custom-string-formatting
@kleczekr
@kleczekr 8 жыл бұрын
Thank you!
@dembobademboba6924
@dembobademboba6924 Жыл бұрын
Thank you. Very helpful
@dataschool
@dataschool Жыл бұрын
You're welcome!
@haifenghong4918
@haifenghong4918 6 жыл бұрын
Thank you, Kevin. I have one question: after pd.set_option('precision', 2),the precision of numbers in the 'Fare' column is 2, but why the precision of numbers in the 'Age' column is still 1?
@haifenghong4918
@haifenghong4918 6 жыл бұрын
And what's more, what is the difference between 'display.precision' and 'precision'? It seems that the results are the same in both cases.
@dataschool
@dataschool 6 жыл бұрын
display.precision and precision are the same, because pandas allows for partial matches in this case.
@faridlgifarikertabudi6508
@faridlgifarikertabudi6508 6 жыл бұрын
can we set float format for ONLY certain column? For example, i want to make float format for 'x' column, but NOT for other column. Please answer this master,. Thank you!
@dataschool
@dataschool 6 жыл бұрын
I don't think so, but I'm not sure!
@sachavanweeren9578
@sachavanweeren9578 6 жыл бұрын
excellent tutorial. Thanks a lot!
@dataschool
@dataschool 6 жыл бұрын
You're very welcome!
@MrKingoverall
@MrKingoverall 5 жыл бұрын
THANKS MAN !!!!!!!!!!!!!! Yet again !!!!!!!!!!!!!
@dataschool
@dataschool 5 жыл бұрын
You're very welcome!
@skyvisionworld512
@skyvisionworld512 8 жыл бұрын
Hello Kevin, How do you remove comma from a data frame? (meaning doing the reverse of what we did here)
@dataschool
@dataschool 8 жыл бұрын
You probably need to use a string method. This video may help: kzbin.info/www/bejne/mKDJknZmfsieftE
@Vinay_Gurram
@Vinay_Gurram 7 жыл бұрын
Can you please let me know - how to save the "output of IDLE" in windows ? - Thanks advance
@dataschool
@dataschool 7 жыл бұрын
I'm not sure, sorry!
@Vinay_Gurram
@Vinay_Gurram 7 жыл бұрын
Data School thanks for such a quick reply
@samkitjain7301
@samkitjain7301 6 жыл бұрын
What is the difference between labels and columns in functions like drop( )? Also, when I use X_train = train.drop(columns=['Survived'], inplace=True)) It gives output as None
@dataschool
@dataschool 6 жыл бұрын
Regarding drop, this video should help: kzbin.info/www/bejne/qpaYe6WJeLxggrs Regarding the None output, that's because of inplace. Hope that helps!
@kalpatarunayak5619
@kalpatarunayak5619 5 жыл бұрын
its not work in pycharm....plz help
@dataschool
@dataschool 5 жыл бұрын
Not sure how to help, sorry!
@MohamedTarek-td3tn
@MohamedTarek-td3tn 5 жыл бұрын
I'm using pycharm and it's work fine, make sure the series type is float .
@mutazkanaan6796
@mutazkanaan6796 6 жыл бұрын
thank you very much
@dataschool
@dataschool 6 жыл бұрын
You're welcome!
@csbhaskar
@csbhaskar 5 жыл бұрын
thanks man
@dataschool
@dataschool 5 жыл бұрын
You're welcome!
@curtismoxam5382
@curtismoxam5382 3 жыл бұрын
Trick question, nothing is simple about Pandas
@FabioRBelotto
@FabioRBelotto 2 жыл бұрын
How do I set new default values or save my display changes even after restarting the IDE?
How do I create a pandas DataFrame from another object?
14:26
Data School
Рет қаралды 43 М.
How do I avoid a SettingWithCopyWarning in pandas?
13:30
Data School
Рет қаралды 45 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
Groupby - Data Analysis with Python and Pandas p.3
20:19
sentdex
Рет қаралды 91 М.
Pandas Functions: Apply vs. Map vs. Applymap
11:53
Mısra Turp
Рет қаралды 28 М.
How do I find and remove duplicate rows in pandas?
9:48
Data School
Рет қаралды 107 М.
How do I apply a function to a pandas Series or DataFrame?
17:58
Data School
Рет қаралды 203 М.
How do I make my pandas DataFrame smaller and faster?
19:06
Data School
Рет қаралды 67 М.
How do I explore a pandas Series?
9:51
Data School
Рет қаралды 75 М.
Find missing values in data with Pandas | Beginner tutorial
12:33
When should I use the "inplace" parameter in pandas?
10:19
Data School
Рет қаралды 55 М.
Loop / Iterate over pandas DataFrame (2020)
11:05
Chart Explorers
Рет қаралды 86 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН