Bloggang.com : weblog for you and your gang
Sufficiency Economy
Group Blog
Japanese Language
ท่องศัพท์ภาษาญี่ปุ่นวันละคำ
NSW NDS DSi 3DS Programming
Romancing Saga2 Translation
My Japanese Coach
XNA Unity3d Programming
Miyoo Mini and Dingoo A-320
SNES NES GB programming
MAC OSX IOS APPLE
บันทึกช่วยจำ
บ้านไร่ ชายทุ่ง
Android
ไม่เข้ากลุ่ม
Graphic Art
Python Programming
Linux
English
VITA PSP Programming
Flutter WEB JAVA PHP JSP ASP
LibreOffice
ออกกำลังกาย
Gameboy Advance
All blogs
pyTorch
Youtube การใช้ Tkinter python
Python : Machine Learning [6]
Python : Machine Learning [5]
Python : Machine Learning [4]
Python : Machine Learning [3]
Python : Machine Learning [2]
Python : Machine Learning [1]
เชียนโปรแกรมได้ทุกที่ ด้วย Qpython
ทดลอง Natural Language Toolkit
python + ubuntu + japanese + write binary file ?
Python + Matplotlib
Python อ่าน และการเขียนข้อมูลลงใน binary file
ตัวอย่างการ load ไฟล์ จาก web mangareader.net
python: OpenCV สร้างภาพสีขาวดำ grayscale
python: OpenCV Crop ภาพ
Python: OpenCV ทำภาพ Smooth
python : ทดลองใช้ OpenCV
Python: การเขียนไฟล์ กับปุ่มกด
Python: โหลดการ์ตูนจาก web ตอนที่ 4
Python: โหลดการ์ตูนจาก web ตอนที่ 3
Python: โหลดการ์ตูนจาก web ตอนที่ 2
Python: โหลดการ์ตูนจาก web
Python อ่านข้อมูล text File (Lexitron)
Python อ่านโครงสร้างของ Table ของ MS Access
Python ทำโปรแกรมจัดการฐานข้อมูล MS Access อย่างง่าย
Python การจัดการ widgets ด้วย grid method
Python ติดต่อฐานข้อมูล Access
Python ทดลองเขียนโปรแกรมเครื่องคิดเลข บวก ลบ ตอนที่2
Python ทดลองเขียนโปรแกรมเครื่องคิดเลข บวก ลบ ตอนที่1
Python Step by Step ^ ^
ทดลองใช้ Python
Python : Machine Learning [3]
วันนี้เรียน บทที่ 5 ซึ่งจะพูดถึง การ covert ข้อมูล การสรุปข้อมูลพื้นฐาน และการเลือกข้อมูล ใน pandas
รูปแบบ การ covert วันเวลา
pd.to_datetime("2020-02-16")
สามารถใส่เป็น list ได้ คือ pd.to_datetime(["2020-02-16","2001-03-18"])
ถ้าต้องการตรวจสอบว่าใส่วันที่ผิดหรือไม่ให้ใช้
pd.to_datetime(["2020-02-16","abc"],errors="coerce") มันจะไม่ error
การ convert ตัวเลขให้ ใช้ to_numeric
การสรุปข้อมูลพื้นฐาน เช่น
df.describe(include="all")
df.info
df["START*"].value_counts() ทำให้รู้ unique data
การเลือกข้อมูล df.iloc[0:5,0:4]
ถ้าต้องการระบุชื่อ column ให้ใช้ df.loc["START*"] คือใส่ชื่อ column ที่ต้องการเลือก
ข้อสังเกต ถ้าเราเลือก column เดียว type จะเปลี่ยนจาก dataframe เป็น series ??
key short cut : run command ให้กด control + enter (ใน mac)
อีกอย่าง ถ้าต้องเก็บข้อมูลที่ทดลอง key ให้ save จะได้ file นามสกุล .ipynb ทำให้ไม่ต้องเสียเวลามาพิมพ์ใหม่
Create Date : 12 สิงหาคม 2563
Last Update : 20 สิงหาคม 2563 20:33:47 น.
0 comments
Counter : 948 Pageviews.
Share
Tweet
ชื่อ :
Comment :
*ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
wink99_th
Location :
พิษณุโลก Thailand
[Profile ทั้งหมด]
ฝากข้อความหลังไมค์
Rss Feed
Smember
ผู้ติดตามบล็อก : 8 คน [
?
]
New Comments
Friends' blogs
Aorora
I^^
กิ่งลีลาวดี
มาทิรน
daikon
nainokkamin
jaikojung
Webmaster - BlogGang
[Add wink99_th's blog to your web]
Links
ชุมชนคนรัก ญี่ปุ่น และ ภาษาญี่ปุ่น
BlogGang.com
Pantip.com
|
PantipMarket.com
|
Pantown.com
| © 2004
BlogGang.com
allrights reserved.