<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>python on Eric&#39;s Note</title>
    <link>https://eric.nz/tags/python/</link>
    <description>Recent content in python on Eric&#39;s Note</description>
    <image>
      <url>https://eric.nz/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://eric.nz/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Sat, 10 Oct 2020 13:31:15 +0000</lastBuildDate><atom:link href="https://eric.nz/tags/python/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Uninstall Anaconda on macOS</title>
      <link>https://eric.nz/posts/macos-uninstall-anaconda/</link>
      <pubDate>Sat, 10 Oct 2020 13:31:15 +0000</pubDate>
      
      <guid>https://eric.nz/posts/macos-uninstall-anaconda/</guid>
      <description>Sometimes you need to re-config your local Anaconda environment, and need to uninstall Anaconda distribution completely.
Automatic Uninstallation Step 1 Install the anaconda-clean package 1 conda install anaconda-clean Step 2 Clean your environment The anaconda-clean command will remove all Anaconda-related files and directories with a confirmation prompt before deleting each one. The --yes argument will help you to skip all confirmation and will remove all these files files and directories without confirmation.</description>
    </item>
    
    <item>
      <title>Pants</title>
      <link>https://eric.nz/posts/py-pants/</link>
      <pubDate>Fri, 22 Mar 2019 12:58:35 +0000</pubDate>
      
      <guid>https://eric.nz/posts/py-pants/</guid>
      <description>Reference Pants Official document Getting started with Pants </description>
    </item>
    
    <item>
      <title>Pandas Best Practice</title>
      <link>https://eric.nz/posts/py-pandas-best-practice/</link>
      <pubDate>Fri, 01 Mar 2019 12:58:35 +0000</pubDate>
      
      <guid>https://eric.nz/posts/py-pandas-best-practice/</guid>
      <description>Data Manipulation Dedup DataFrame Sometimes we want to drop all the duplicated data in our DataFrame, and we can use the drop_duplicates() function.
For Example:
1 2 3 4 5 6 7 8 9 10 11 12 df = pd.DataFrame({ &amp;#39;brand&amp;#39;: [&amp;#39;Yum Yum&amp;#39;, &amp;#39;Yum Yum&amp;#39;, &amp;#39;Indomie&amp;#39;, &amp;#39;Indomie&amp;#39;, &amp;#39;Indomie&amp;#39;], &amp;#39;style&amp;#39;: [&amp;#39;cup&amp;#39;, &amp;#39;cup&amp;#39;, &amp;#39;cup&amp;#39;, &amp;#39;pack&amp;#39;, &amp;#39;pack&amp;#39;], &amp;#39;rating&amp;#39;: [4, 4, 3.5, 15, 5] }) df brand style rating 0 Yum Yum cup 4.0 1 Yum Yum cup 4.</description>
    </item>
    
    <item>
      <title>Basic Usage of Pandas</title>
      <link>https://eric.nz/posts/py-pandas-basic-usage/</link>
      <pubDate>Sat, 06 Oct 2018 21:54:03 +0000</pubDate>
      
      <guid>https://eric.nz/posts/py-pandas-basic-usage/</guid>
      <description>DataFrame Create a DataFrame Get DataFrame Column Headers list(df) Reference RealPython.com: Python Pandas: Tricks &amp;amp; Features You May Not Know TowardDataScience.com: 23 great Pandas codes for Data Scientists Analyticsvidhya.com: 12 Useful Pandas Techniques in Python for Data Manipulation </description>
    </item>
    
    <item>
      <title>Managing Your Python Environment with Pipenv</title>
      <link>https://eric.nz/posts/py-pipenv/</link>
      <pubDate>Thu, 03 Dec 2015 03:41:32 +0000</pubDate>
      
      <guid>https://eric.nz/posts/py-pipenv/</guid>
      <description>General Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip, virtualenv, and requirements.txt. Pipenv is designed to resolve dependency management chaos created by requirements.txt.
Introduction First, let&amp;rsquo;s install the pipenv package. Pipenv uses pip and virtualenv under the hood but simplifies their usage with a single command-line interface.
1 pip install --user pipenv Pipenv introduces two new files.
Pipfile is to replace the old requirements.</description>
    </item>
    
    <item>
      <title>Type Hint with Python</title>
      <link>https://eric.nz/posts/py-type-hint/</link>
      <pubDate>Thu, 03 Dec 2015 03:41:32 +0000</pubDate>
      
      <guid>https://eric.nz/posts/py-type-hint/</guid>
      <description>Bad Code
1 2 3 4 5 6 7 def get_authors_names(posts): authors_names = [] for post in posts: author = post[&amp;#34;author&amp;#34;] author_name = author[&amp;#34;name&amp;#34;] authors_names.append(author_name) return authors_names Good code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 from typing import List, TypedDict class Author(TypedDict): name: str email: str bio: str website: str class Post(TypeDict): title: str author: Author publication_date: str content: str def get_authors_names(posts: List[Post]) -&amp;gt; List[str]: return [post[&amp;#34;author&amp;#34;][&amp;#34;name&amp;#34;] for post in posts] </description>
    </item>
    
    <item>
      <title>Python Libraries</title>
      <link>https://eric.nz/posts/py-library/</link>
      <pubDate>Fri, 06 Mar 2015 03:06:35 +0000</pubDate>
      
      <guid>https://eric.nz/posts/py-library/</guid>
      <description>Stats &amp;amp; exploratory analysis Numpy. Pandas. SciPy. Statsmodels. Patsy. Emcee. Machine Learning Scikit-learn. TensorFlow. Keras. Theano. Lifelines. Data Visualization Matplotlib. Plotly. Seaborn. Geomap. Folium. Networkx. Basemap. Web Scraping BeautifulSoup. ScraPy. Requests. Natural Language Processing NLTK. Gensim. TextBlob. Utility when-changed. tenacity . </description>
    </item>
    
  </channel>
</rss>
