Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] [PDF Collection] 7 Beautiful Pandas Cheat Sheets — Post Them to Your Wall

#1
[PDF Collection] 7 Beautiful Pandas Cheat Sheets — Post Them to Your Wall

<div><p><a rel="noreferrer noopener" target="_blank" href="https://pandas.pydata.org/">Pandas</a>&nbsp;is an open-source Python library that is powerful and flexible for data analysis. If there is something you want to do with data, the chances are it will be possible in pandas. There are a vast number of possibilities within pandas, but most users find themselves using the same methods time after time. In this article, we compiled the best cheat sheets from across the web, which show you these core methods at a glance.</p>
<p>The primary data structure in pandas is the&nbsp;<a target="_blank" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html" rel="noreferrer noopener">DataFrame</a>&nbsp;used to store two-dimensional data, along with a label for each corresponding column and row. If you are familiar with Excel spreadsheets or SQL databases, you can think of the DataFrame as being the pandas equivalent. If we take a single column from a DataFrame, we have one-dimensional data. In pandas, this is called a&nbsp;<a target="_blank" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.html" rel="noreferrer noopener">Series</a>. DataFrames can be created from scratch in your code, or loaded into Python from some external location, such as a CSV. This is often the first stage in any data analysis task. We can then do any number of things with our DataFrame in Pandas, including removing or editing values, filtering our data, or combining this DataFrame with another DataFrame. Each line of code in these cheat sheets lets you do something different with a DataFrame. Also, if you are coming from an Excel background, you will enjoy the performance pandas has to offer. After you get over the learning curve, you will be even more impressed with the functionality.</p>
<p>Whether you are already familiar with pandas and are looking for a handy reference you can print out, or you have never used pandas and are looking for a resource to help you get a feel for the library- there is a cheat sheet here for you!</p>
<h2><a rel="noreferrer noopener" target="_blank" href="https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf">1. The Most Comprehensive Cheat Sheet</a></h2>
<figure class="wp-block-image size-large"><img src="https://blog.finxter.com/wp-content/uploads/2020/04/image-3-1024x791.png" alt="" class="wp-image-7982" srcset="https://blog.finxter.com/wp-content/uploads/2020/04/image-3-1024x791.png 1024w, https://blog.finxter.com/wp-content/uplo...00x232.png 300w, https://blog.finxter.com/wp-content/uplo...68x593.png 768w, https://blog.finxter.com/wp-content/uplo...mage-3.png 1117w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p><a href="https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf" target="_blank" rel="noreferrer noopener">https://pandas.pydata.org/Pandas_Cheat_Sheet.pdf</a></p>
<p>This one is from the pandas guys, so it makes sense that this is a comprehensive and inclusive cheat sheet. It covers the vast majority of what most pandas users will ever need to do to a DataFrame. Have you already used pandas for a little while? And are you looking to up your game? This is your cheat sheet! However, if you are newer to pandas and this cheat sheet is a bit overwhelming, don’t worry! You definitely don’t need to understand everything in this cheat sheet to get started. Instead, check out the next cheat sheet on this list.</p>
<h2><a rel="noreferrer noopener" target="_blank" href="https://www.dataquest.io/blog/pandas-cheat-sheet/">2. The Beginner’s Cheat Sheet</a></h2>
<figure class="wp-block-image size-large"><img src="https://blog.finxter.com/wp-content/uploads/2020/04/image-10-1024x279.png" alt="" class="wp-image-7994" srcset="https://blog.finxter.com/wp-content/uploads/2020/04/image-10-1024x279.png 1024w, https://blog.finxter.com/wp-content/uplo...300x82.png 300w, https://blog.finxter.com/wp-content/uplo...68x209.png 768w, https://blog.finxter.com/wp-content/uplo...36x418.png 1536w, https://blog.finxter.com/wp-content/uplo...age-10.png 1861w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p><a rel="noreferrer noopener" href="https://www.dataquest.io/blog/pandas-cheat-sheet/" target="_blank">https://www.dataquest.io/blog/pandas-cheat-sheet/</a></p>
<p>Dataquest is an online platform that teaches Data Science using interactive coding challenges. I love this cheat sheet they have put together. It has everything the pandas beginner needs to start using pandas right away in a friendly, neat list format. It covers the bare essentials of each stage in the data analysis process:</p>
<ul>
<li>Importing and exporting your data from an Excel file, CSV, HTML table or SQL database</li>
<li>Cleaning your data of any empty rows, changing data formats to allow for further analysis or renaming columns</li>
<li>Filtering your data or removing anomalous values</li>
<li>Different ways to view the data and see it’s dimensions</li>
<li>Selecting any combination of columns and rows within the DataFrame using loc and iloc</li>
<li>Using the .apply method to apply a formula to a particular column in the DataFrame</li>
<li>Creating summary statistics for columns in the DataFrame. This includes the median, mean and standard deviation</li>
<li>Combining DataFrames</li>
</ul>
<h2><a rel="noreferrer noopener" target="_blank" href="https://www.shanelynn.ie/using-pandas-dataframe-creating-editing-viewing-data-in-python/">3. The Excel User’s Cheat Sheet</a></h2>
<figure class="wp-block-image size-large"><img src="https://blog.finxter.com/wp-content/uploads/2020/04/image-5-1024x541.png" alt="" class="wp-image-7985" srcset="https://blog.finxter.com/wp-content/uploads/2020/04/image-5.png 1024w, https://blog.finxter.com/wp-content/uplo...00x159.png 300w, https://blog.finxter.com/wp-content/uplo...68x406.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p><a rel="noreferrer noopener" href="https://www.shanelynn.ie/using-pandas-dataframe-creating-editing-viewing-data-in-python/" target="_blank">https://www.shanelynn.ie/using-pandas-dataframe-creating-editing-viewing-data-in-python/</a></p>
<p>Ok, this isn’t quite a cheat sheet, it’s more of an entire manifesto on the pandas DataFrame! If you have a little time on your hands, this will help you get your head around some of the theory behind DataFrames. It will take you all the way from loading in your trusty CSV from Microsoft Excel to viewing your data in Jupyter and handling the basics. The article finishes off by using the DataFrame to create a histogram and bar chart. For migrating your spreadsheet work from Excel to pandas, this is a fantastic guide. It will teach you how to perform many of the Excel basics in pandas. If you are also looking for how to perform the pandas equivalent of a VLOOKUP in Excel, check out Shane’s&nbsp;<a target="_blank" href="https://www.shanelynn.ie/merge-join-dataframes-python-pandas-index-1/" rel="noreferrer noopener">article</a>&nbsp;on the merge method.</p>
<h2><a rel="noreferrer noopener" target="_blank" href="https://www.enthought.com/wp-content/uploads/Enthought-Python-Pandas-Cheat-Sheets-1-8-v1.0.2.pdf">4. The Most Beautiful Cheat Sheet</a></h2>
<figure class="wp-block-image size-large"><img src="https://blog.finxter.com/wp-content/uploads/2020/04/image-6-1024x699.png" alt="" class="wp-image-7986" srcset="https://blog.finxter.com/wp-content/uploads/2020/04/image-6-1024x699.png 1024w, https://blog.finxter.com/wp-content/uplo...00x205.png 300w, https://blog.finxter.com/wp-content/uplo...68x524.png 768w, https://blog.finxter.com/wp-content/uplo...mage-6.png 1268w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p><a href="https://www.enthought.com/wp-content/uploads/Enthought-Python-Pandas-Cheat-Sheets-1-8-v1.0.2.pdf" target="_blank" rel="noreferrer noopener">https://www.enthought.com/wp-content/uploads/Enthought-Python-Pandas-Cheat-Sheets-1-8-v1.0.2.pdf</a></p>
<p>If you’re more of a visual learner, try this cheat sheet! Many common pandas tasks have intricate, color-coded illustrations showing how the operation works. On page 3, there is a fantastic section called ‘Computation with Series and DataFrames’, which provides an intuitive explanation for how DataFrames work and shows how the index is used to align data when DataFrames are combined and how element-wise operations work in contrast to operations which work on each row or column. At 8 pages long, it’s more of a booklet than a cheat sheet, but it can still make for a great resource!&nbsp;</p>
<h2><a rel="noreferrer noopener" target="_blank" href="https://elitedatascience.com/python-cheat-sheet">5. The Best Machine Learning Cheat Sheet</a></h2>
<figure class="wp-block-image size-large"><img src="https://blog.finxter.com/wp-content/uploads/2020/04/image-7-1024x446.png" alt="" class="wp-image-7989" srcset="https://blog.finxter.com/wp-content/uploads/2020/04/image-7.png 1024w, https://blog.finxter.com/wp-content/uplo...00x131.png 300w, https://blog.finxter.com/wp-content/uplo...68x335.png 768w, https://blog.finxter.com/wp-content/uplo...36x670.png 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p><a href="https://elitedatascience.com/python-cheat-sheet" target="_blank" rel="noreferrer noopener">https://elitedatascience.com/python-cheat-sheet</a></p>
<p>Much like the other cheat sheets, there is comprehensive coverage of the pandas basic in here. So, that includes filtering, sorting, importing, exploring, and combining DataFrames. However, where this Cheat Sheet differs is that it finishes off with an excellent section on&nbsp;<a target="_blank" href="https://scikit-learn.org/stable/" rel="noreferrer noopener">scikit-learn</a>, Python’s machine learning library. In this section, the DataFrame is used to train a machine learning model. This cheat sheet will be perfect for anybody who is already familiar with machine learning and is transitioning from a different technology, such as R.</p>
<h2><a rel="noreferrer noopener" target="_blank" href="http://datacamp-community-prod.s3.amazonaws.com/dbed353d-2757-4617-8206-8767ab379ab3">6. The Most Compact Cheat Sheet</a></h2>
<figure class="wp-block-image size-large"><img src="https://blog.finxter.com/wp-content/uploads/2020/04/image-8-1024x724.png" alt="" class="wp-image-7990" srcset="https://blog.finxter.com/wp-content/uploads/2020/04/image-8-1024x724.png 1024w, https://blog.finxter.com/wp-content/uplo...00x212.png 300w, https://blog.finxter.com/wp-content/uplo...68x543.png 768w, https://blog.finxter.com/wp-content/uplo...mage-8.png 1221w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p><a href="http://datacamp-community-prod.s3.amazonaws.com/dbed353d-2757-4617-8206-8767ab379ab3" target="_blank" rel="noreferrer noopener">http://datacamp-community-prod.s3.amazonaws.com/dbed353d-2757-4617-8206-8767ab379ab3</a></p>
<p>Data Camp is an online platform that teaches Data Science with videos and coding exercises. They have made cheat sheets on a bunch of the most popular Python libraries, which you can also check out&nbsp;<a target="_blank" href="https://www.datacamp.com/community/data-science-cheatsheets" rel="noreferrer noopener">here</a>. This cheat sheet nicely introduces the DataFrame, and then gives a quick overview of the basics. Unfortunately, it doesn’t provide any information on the various ways you can combine DataFrames, but it does all fit on one page and looks great. So, if you are looking to stick a pandas cheat sheet on your bedroom wall and nail home the basics, this one might be for you! The cheat sheet finishes with a small section introducing NaN values, which come from NumPy. These indicate a null value and arise when the indices of two Series don’t quite match up in this case.</p>
<h2><a rel="noreferrer noopener" target="_blank" href="https://www.webpages.uidaho.edu/~stevel/504/pandas%20dataframe%20notes.pdf">7. The Best Statistics Cheat Sheet</a></h2>
<figure class="wp-block-image size-large"><img src="https://blog.finxter.com/wp-content/uploads/2020/04/image-9-1024x715.png" alt="" class="wp-image-7991" srcset="https://blog.finxter.com/wp-content/uploads/2020/04/image-9-1024x715.png 1024w, https://blog.finxter.com/wp-content/uplo...00x210.png 300w, https://blog.finxter.com/wp-content/uplo...68x536.png 768w, https://blog.finxter.com/wp-content/uplo...mage-9.png 1240w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
<p><a href="https://www.webpages.uidaho.edu/~stevel/504/pandas%20dataframe%20notes.pdf" target="_blank" rel="noreferrer noopener">https://www.webpages.uidaho.edu/~stevel/504/pandas%20dataframe%20notes.pdf</a></p>
<p>While there aren’t any pictures to be found in this sheet, it is an incredibly detailed set of notes on the pandas DataFrame. This cheat shines with its complete section on time series and statistics. There are methods for calculating covariance, correlation, and regression here. So, if you are using pandas for some advanced statistics or any kind of scientific work, this is going to be your cheat sheet.</p>
<h2>Where to go from here?</h2>
<p>For just automating a few tedious tasks at work, or using pandas to replace your crashing Excel spreadsheet, everything covered in these cheat sheets should be entirely sufficient for your purposes.&nbsp;</p>
<p>If you are looking to use pandas for Data Science, then you are only going to be limited by your knowledge of statistics and probability. This is the area that most people lack when they try to enter this field. I highly recommend checking out&nbsp;<a target="_blank" href="https://greenteapress.com/thinkstats2/thinkstats2.pdf" rel="noreferrer noopener">Think Stats</a>&nbsp;by Allen B Downey, which provides an introduction to statistics using Python.</p>
<p>For those a little more advanced, looking to do some machine learning, you will want to start taking a look at the scikit-learn library. Data Camp has a great&nbsp;<a target="_blank" href="https://s3.amazonaws.com/assets.datacamp.com/blog_assets/Scikit_Learn_Cheat_Sheet_Python.pdf" rel="noreferrer noopener">cheat sheet</a>&nbsp;for this. You will also want to pick up a linear algebra textbook to understand the theory of machine learning. For something more practical, perhaps give the famous&nbsp;<a target="_blank" href="https://www.kaggle.com/c/titanic" rel="noreferrer noopener">Kaggle Titanic machine learning competition</a>.</p>
<p>Learning about pandas has many uses, and can be interesting simply for its own sake. However, Python is massively in demand right now, and for that reason, it is a high-income skill. At any given time, there are thousands of people searching for somebody to solve their problems with Python. So, if you are looking to use Python to work as a freelancer, then check out the&nbsp;<a target="_blank" href="https://blog.finxter.com/become-python-freelancer-course/" rel="noreferrer noopener">Finxter Python Freelancer Course</a>. This provides the step by step path to go from nothing to earning a full-time income with Python in a few months, and gives you the tools to become a six-figure developer!</p>
</div>


https://www.sickgaming.net/blog/2020/04/...your-wall/
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016