What I learned from the 10-hour data science course - Data Analysis with Python Course - NumPy, Pandas, Data Visualization

Search for a command to run...

No comments yet. Be the first to comment.
What is my experience using Focuster for 2 weeks, based on Effectiveness, Ease of use, Customisability and Price.
![Focuster review: My experience as a student in summer [week 3]](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1693222238382%2F06452c01-14a3-423a-9311-83b9d82f6fcc.png&w=3840&q=75)
What is my experience using Reclaim for 2 weeks, based on Effectiveness, Ease of use, Customisability and Price.
![Reclaim.AI review: My experience as a student in internship [week 2]](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1692385558997%2F5cd2253e-b50d-4d47-9aad-72807848b1a9.png&w=3840&q=75)
What is my experience using Motion for 1 week, based on Effectiveness, Ease of use, Customisability and Price.
![Motion Review: My experience as a student in internship [week 1]](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1690840123756%2F5bdf844a-d728-430c-8d9b-b88b7b77c726.png&w=3840&q=75)
Trying out different productivity tools to see which one helps me the most
![Trialling Productivity Tools to Rescue My Time [Week 0]](/_next/image?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1690321356599%2F2f404dbe-3c2a-421b-903c-04d72c8febed.png&w=3840&q=75)
In the previous blog, I talked about my plan to build this prayer tracker website. This time, I will talk about the use cases of this website, to better plan the website. Side note: I will call this a web application from now on. Websites tend to be...

I will be watching the 10-hour course from FreeCodeCamp, https://www.youtube.com/watch?v=GPVsHOlRBBI, so I want to record what I learned from it.
Conda is an open-source package manager made for Python. If you have two python projects, each requiring a different version of Python and Python packages, Conda is for you. Conda can create, save, load and switch between environments on your local computer, so you can work on your two projects without having to reinstall Python every time you switch projects.
Jupyter notebook is a notebook where you can write notes and run code. It is useful for data science because codes are organized in cells, so you can run individual cells one at a time. Contents inside variables are also kept after you ran a cell so that you can use them repeatedly without having to restart the entire program. Without a Jupyter notebook, when I made a change, I have to restart the entire program because variables are not stored, which is very inefficient. But from now on I will use a Jupyter notebook and be more efficient.
It also helps me with writing my blog, since its structure is very similar.
Keyboards shortcuts are very useful to speed up things, so I went ahead to find some useful keyboard shortcuts from this article before starting:
Shift + Enter run the current cell, select belowAlt + Enter run the current cell, insert belowCtrl + S save and checkpointThere are two modes, one is the default mode, which is when you just loaded in the document and are not editing anything, in there you can:
A insert cell aboveB insert cell belowD, D (press the key twice) delete selected cellsZ undo cell deletionY change the cell type to CodeM change the cell type to MarkdownEnter take you into edit modeInside edit mode, where you edit code cells:
Esc take you back to default modeTab code completion or indentShift + Tab tooltip
np.genfromtxt() can read csv file and return a numpy arraynp.savetxt() can store a numpy array from a csv file
.info() method to view the basic information about the dataframe.describe() method to see statistical information about the numeric data within the dataframe.index method to get the indexes as a list, which is very useful when you want to plot graphs of a seriesreduced_df = df[['column1', 'column3']], then the resulting dataframe will only have the two columns, but note that this is simply a view, and modifying values here will change the original dataframe as well, you need to use .copy() to create a new dataframe.head() to show first few items, .tail() to show last few items, and .sample() to show a random itemcovid_df.sort_values() where we pass in the column namepd.to_datetime() function.groupby() function passing in a column name to group the data, then we can select some columns, and use.sum() or .mean() to calculate the value for the different groupings.merge() on a dataframe, passing in the dataframe, and on which column.to_csv() passing in the file name

%matplotlib inline after importing matplotlib to ensure that our plots are shown and embedded within the Jupyter notebook itselfplt.plot()plt.xlabel() and plt.ylabel(), and legend with plt.legend()plt.plot(), then change certain stuff like labels afterwards, then at the end of the execution, the plot will be shown with the correct data and labelssns, because Samuel Norman "Sam" Seaborn is a fictional character portrayed by Rob Lowe on the television serial drama 'The West Wing' according to this StackOverflow post, my guess is the creator loved this TV show.sns.scatterplot() passing in the x and y, and optionally a hueplt.hist(), and we can customize the bins to even uneven bins if we wantstacked argumentplt.bar()plt.xticks(rotation=75)sns.heatmap(), a heat map is a good way to visualize 2D dataI would like to thank the platform jovian.ai for partnering with freecodecamp.org and giving us this free course, and a platform to learn while doing, where we can use the same Jupyter notebook the instructor used. I want to also thank the instructor Aakash N S for the teaching and the material, he included practical examples for the content so we can better understand.
After this course, I feel confident continuing my data analysis project, which can be found on my Hashnode blog.