Back Plotting Data in Python using Pandas #datascience #shorts

0-3
Created By: Rob Mulla
Published At: 2022-06-18
Search Query: Python Matplotlib Bars,Python Matplotlib Plotting,Python Matplotlib Pyplot,Python Pandas Tutorial
Tags: data science data visualization python programming data analysis jupyter notebook matplotlib tutorial python matplotlib python matplotlib tutorial python tutorial data science course data science for beginners data science tutorial learn python what is data science data science python Data visualization project python 3 programming tutorial what is data science like learn python for beginners learn python programming python tutorial for beginners
In this video we make a bar plot with some youtube data.

#python #pandas #datascience #shorts
logo Ask VidTutorAssistant
Comment
or
Question
Your name
Comments with generated responses
@v4dl45
2023-01-15

Wait, so can you make a graph with matplotlib on a pandas dataframe (object)?

@robmulla

Yes. Pandas dataframes have built in plotting methods that produce a matplotlib output.

VidTutorAssistant (GPT-4)

Absolutely, @v4dl45! Matplotlib is a powerful tool in the Python ecosystem that works in harmony with pandas for visualizing data. In my video, after we gathered the data and prepared it (grouping by titles, selecting maximum views, sorting), we used the `.plot` function directly on our DataFrame object to generate a horizontal bar plot. This shows how seamless the integration between pandas and matplotlib is, where you are indeed plotting with matplotlib on a pandas DataFrame. Stick around for more videos and keep the questions coming!


@callme.reaper
2023-02-22

Can We Use descending=True?

@robmulla

I donโ€™t think so. Itโ€™s just an ascending flag. Otherwise the two flags could conflict.

VidTutorAssistant (GPT-4)

Absolutely, @callme.reaper! You can definitely use `descending=True` instead of `ascending=False` when sorting values in a pandas dataframe. Both are different ways of achieving the same output - getting the highest values at the top. Stick around for more coding tips and don't forget to check out my next Python tutorial!


@mjacfardk
2022-06-19

plz more short tips and tricks on pandas.
Thanks bro.

@robmulla

Iโ€™ve been getting positive responses on these shorts so youโ€™ll probably see some more in the near future!

VidTutorAssistant (GPT-4)

Glad you're finding the pandas tips useful, @mjacfardk! Absolutely, I definitely plan to share more Python pandas shortcuts and nifty tricks. Keep your eyes on the channel to catch them as soon as they drop. Thanks for being part of this pythonic journey!


@thechallenger6124
2023-02-15

what is the purpose of the slashes? ive never seen them used this way

@robmulla

It allows you to split lines of code in python. Another option would be to wrap it all in ()

VidTutorAssistant (GPT-4)

Thanks for your question, @thechallenger6124! It seems there might be a bit of confusion because the provided transcript doesn't actually include any slashes. In Python though, slashes are used as a division operator in arithmetic operations, or to create escape characters. If there are specifics from my video transcripts that you want to clarify about slashes, feel free to share them! Happy coding!


@mandata143
2023-02-16

What amazes me is this looks so easy to code ๐Ÿ˜ณ and here i am, still studying DA/DS ๐Ÿ˜‚

@robmulla

A lot of practice! You'll get there.

VidTutorAssistant (GPT-4)

Hey @mandata143, thanks for your comment! Python indeed makes data analysis look pretty easy! Don't worry, DA/DS is a vast field and it absolutely takes time to learn. Keep practicing! Remember, every coding expert was once a beginner. Python's simplicity and versatility are what makes it a great tool to work with. Stick with it and soon you'll be plotting data in seconds just like I did in the video. Your journey in learning entails gradual progress, so keep going! Be sure to check out more videos on my channel, they might help make your learning path easier! Happy Coding! ๐Ÿ˜Š