รวม Python Tutorial สำหรับงาน Data Analytics

รวม Python Tutorial สำหรับงาน Data AnalyticsThanachart RitbumroongBlockedUnblockFollowFollowingOct 15, 2018สำหรับคนที่เพิ่งเริ่มทำ data analytics หลายคนก็ยังสับสนไม่รู้จะเริ่มทำอะไรยังไงดี python ก็เขียนเป็นแค่ print(‘hello world’) เลยรวบรวม Python Tutorial ในหัวข้อต่างๆ ให้ ไว้ไปตามไปเรียน (copy code) กันนะครับเริ่มต้นรู้จักตัวแปรใน python ก่อนdata types ใน python มีมากมายหลากหลายมาก เรียนหมดคงสลบตาย link ด้านล่าง ก็มีอธิบายทุกสิ่งอย่างอัน แต่ถ้าใครอยากได้ shortcut ก็ลองใช้เฉพาะพวก ตัวแปรปกติ List และ DataFrame (ใน Panda) ก่อนก็ได้ครับPython Basics for Data SciencePython Data Typestowardsdatascience.

comจัดการข้อมูลด้วย Pandasมีมากมายหลายวิธี ขึ้นอยู่กับ data source ต้นทางด้วยว่าอยู่ในรูปแบบไหน แต่เบื้องต้น เอาอันนี้ไปก่อนเลย ใช้ pandas มา import ข้อมูลจาก csv filesHow to read a tabular data file (CSV) with Pandas?Before we manipulate data from a CSV file, we need to load up the file in Python.

This is where Pandas come into play.

medium.

comเมื่อได้ข้อมูลมาแล้ว ก็อยากเรียกดูข้อมูลแบบนู้นแบบนี้ ก็ทำตามนี้เลยยSelecting Subsets of Data in Pandas: Part 1This article is available as a Jupyter Notebook complete with exercises at the bottom to practice and detailed…medium.

comDescriptive Analytics ด้วย Pandasเมื่อได้ข้อมูลมาเรียบร้อย ขอความกรุณา อย่าเพิ่งยิงเข้าโมเดล มาทำ descriptive analytics กันก่อน เพื่อเข้าใจในเนื้อข้อมูล เราก็ไปอ่านด้านล่างได้เลยBasic statistics in pandas DataFrameOnce you have cleaned your data, you probably want to run some basic statistics and calculations on your pandas…medium.

comData Visualization ด้วย matplotlibอีกขั้นตอนหนึ่งของการทำ data analysis ก็คือการทำ visualization เราสามารถใช้ module ที่ชื่อ matplotlib มาใช้ในการสร้าง graph ต่างๆData Science with Python: Intro to Data Visualization with MatplotlibIntrotowardsdatascience.

com5 Quick and Easy Data Visualizations in Python with CodeData Visualization is a big part of a data scientist’s jobs.

In the early stages of a project, you’ll often be doing an…towardsdatascience.

comนอกจาก matplotlib ก็ยังมี tools อื่นๆ อีก เช่น seaborn หรือ bokeh นะครับVisualization for Data Science in PythonGetting started & overview.

medium.

comMachine Learning กับ Pythonใครอยาก advanced ขึ้นไปอีก ก็มาทำพวก machine learning กัน อันนี้จะเป็นโพสต์เก่าๆ ของผมที่เคยโพสต์ไปนะครับ9 Common Analytics Tasks — analytics 9 ประเภทที่ทุกคนควรรู้คนที่เริ่มต้นทำงานเกี่ยวกับ analytics ก็จะงงหน่อยนึงว่า แล้วปัญหาแบบนี้ มันจะใช้เทคนิคอะไรยังไงนะ หรือ ปัญหาแบบนี้…medium.

comแบ่งกลุ่มลูกค้า โดยใช้ Python กับ Google BigQueryสอนใช้ R ดึงข้อมูลจาก Google BigQuery ลงมาทำ Clustering ไปแล้ว มาดู version Python กันบ้างครับmedium.

comTensorFlow ฉบับมือใหม่ โดยใช้ Pythonหยุดยาวไม่ไปไหน ก็มาเรียนรู้การทำ Machine Learning โดยใช้ TensorFlow กันครับ เป็นสิ่งที่ดองไว้ยาวนานมากกกก คือ…medium.

comสร้าง Recommendation Engine (Collaborative Filtering) โดย Pythonอีก Use Case สุดฮิตของการทำ Big Data หรือ Data Science ก็คือ การ recommend user ไปยัง product หรือ service…medium.

comChurn Prediction ด้วย Logistics Regression โดย Pythonตัวอย่างวันนี้ ก็จะเป็นการพยากรณ์ว่า ลูกค้าคนไหน จะไม่กลับมาซื้อต่อ ด้วยเทคนิคที่เราเรียกว่า Logistics Regression…medium.

comWeb Scraping ด้วย BeautifulSoupเราสามารถใช้ Python ในการทำ Web Scraping ได้ด้วย module ที่ชื่อว่า BeautifulSoup ครับ ตามนี้เลยลองทำ Web Scraping ด้วย BeautifulSoup กันเถอะสำหรับ Blog นี้เราจะมาดูวิธีการทำ Web scraping ด้วย Python3 และ BeautifulSoup ในระดับ Basic มากกกกกกกกกกกกก กันดูนะ :)medium.

comสอนใช้ Beautiful soup 4 เบื้องต้นวันนี้ก็จะมาสอนใช้ Beautiful soup สำหรับหาคำที่อยู่ใน html ของแต่ละเว็บและดึงสิ่งที่เราต้องการจากเว็บมาใช้นั้นเองนะครับ…medium.

comตัดคำภาษาไทยใครอยากทำให้ไฮโซขึ้นไปอีก ก้เอาคำภาษาไทยที่มันยาวเหยียดเป็นประโยคไม่มีช่องว่าง มาตัดเป็นคำๆ เพื่อเอาไปวิเคราะห์การตัดคำไทย ด้วย Pythonก่อนอื่น บอกก่อนว่า ตอนนี้กำลังเรียนวิชา Data science ได้มีการทำ การวิเคราะห์ รีวิว ซึ่ง จำเป็น ต้องตัดคำเพื่อ…medium.

comไว้ว่างๆ จะมา update ให้ใหม่นะครับ.

. More details

Leave a Reply