Automatically translated.View original post

🐼 3 Pandas settler postures used by AI Engineer until professional! ✨

"Garbage In, Garbage Out!" 🗑️ If the data is rubbish, the results are rubbish!

.

Today, let's share 3 Pandas commands that AI Engineer has to press every day until close your eyes! 👩‍💻👨‍💻

.

1️⃣ Fillna (): Data lost, not a problem! Plug holes with one-click averages. Don't be afraid, AI cries Error! 🛠️

2️⃣ get _ dummies (): Turn "male-female" into one-hot Encoding, because AI talks with numbers! 🤖

3️⃣ query (): Filter the data as sensitive as ordering papaya salad! "Take only members whose purchases exceed tens of thousands." Write one line, end! 🥗

.

⚠️ Newbie Warning: Beware of Pandas Eating RAM Like Water! If the file is big, don't forget to use the Chunking technique or skip to find Polars instead! 🚀

.

Save it! Who wants to know anything about Data? Comment it. 👇

# Data ascience # Developer # programmer # selfdevelopment # learnonlemon8

1/12 Edited to

... Read moreสำหรับคนที่เริ่มต้นใช้งาน Pandas อาจสงสัยว่า DataFrame หรือ df คืออะไร? DataFrame คือโครงสร้างข้อมูลตารางที่มีแถวและคอลัมน์เหมือน Excel แต่ทำงานได้ยืดหยุ่นและรวดเร็วในภาษา Python โดย Pandas เป็นไลบรารีที่ช่วยจัดการข้อมูลเหล่านี้อย่างมีประสิทธิภาพ การเข้าใจ DataFrame และการใช้คำสั่ง Pandas อย่าง fillna() จะช่วยให้เราจัดการกับข้อมูลที่หายไป (NaN) ได้ง่ายขึ้น เช่น เติมค่ากลางหรือค่าเฉลี่ยแทนค่าว่างเพื่อไม่ให้ AI Model เจอปัญหา นอกจากนี้ การใช้ get_dummies() เป็นวิธีที่ดีในการแปลงข้อมูลประเภทข้อความ เช่น 'ชาย' หรือ 'หญิง' ให้กลายเป็นค่าตัวเลข 0 หรือ 1 เพื่อให้ AI สามารถประมวลผลได้อย่างถูกต้อง ส่วน query() ช่วยให้เราเลือกข้อมูลที่ต้องการได้อย่างรวดเร็ว เช่น การกรองสมาชิกที่มียอดซื้อเกินหมื่นบาท ทำให้วิเคราะห์ข้อมูลเฉพาะกลุ่มได้ง่ายขึ้นโดยไม่ต้องเขียนโค้ดยาว แต่ควรระวังว่า Pandas ใช้ RAM มากเมื่อทำงานกับข้อมูลขนาดใหญ่ ดังนั้นเทคนิคอย่าง Chunking ที่แบ่งข้อมูลเป็นส่วนเล็กๆ หรือเปลี่ยนไปใช้ไลบรารีอย่าง Polars ซึ่งออกแบบมารองรับข้อมูลใหญ่จะช่วยลดปัญหานี้ได้อย่างดี ในฐานะคนใช้ Pandas อยู่นาน ผมแนะนำให้เริ่มต้นด้วยการเรียนรู้คำสั่งพื้นฐานเหล่านี้และทดลองโค้ดกับข้อมูลจริง จะช่วยให้เข้าใจการใช้งานและปัญหาที่อาจเกิดขึ้นกับ DataFrame ได้อย่างลึกซึ้ง และทำให้งาน Data Science หรือ AI ของคุณเป็นมืออาชีพมากขึ้น

Related posts

Love yourselves Lemon8ies. 🍋🌸🫶
Love yourself - so the next person can! 👍Pros: Boundaries 👍Pros: Confidence 👍Pros: Deserving 🤔Cons: No Boundaries 🤔Cons: Insecure 🤔Cons: Settler #embracevulnerability #Lemon8Diary #shareyourthoughts #fypツ
ShaunieObese 🤭

ShaunieObese 🤭

11 likes

A fluffy puppy with striking blue eyes and multi-colored fur sits in a vehicle seat, introducing the topic of kid-friendly dog breeds.
A cute beagle puppy lies on its back, showcasing the breed's friendly, gentle, and patient temperament, making them suitable for kids.
A brown Boxer puppy with a white chest lies down, illustrating the breed's loving, playful nature and role as protective guardians for children.
Kid-friendly dog breeds🐶
#dogs #puppies #kidfriendlydog #kidsanddogs
Peyton🛍️

Peyton🛍️

572 likes

A brick building with a large arched window, identified as the Salem Witch Museum, featured in a mini travel guide for Salem, MA.
The Salem Witch Museum building stands next to the Roger Conant Statue, a bronze figure on a large rock base, under a cloudy sky in Salem, Massachusetts.
A close-up of the Roger Conant Statue, the first settler of Salem, MA, depicted as a cloaked figure on a rock base with an informational plaque.
Salem Massachusetts Travel Guide | Part 2
Here is part two of my trip to Salem, Massachusetts! This one won’t be as in depth as my first one but here’s a couple more places we stopped at before the end of our day in the witch city. Travel Guide 📍 Location 1: Salem Witch Museum 🗺️ Description: The museum takes you through the history o
Millie

Millie

1179 likes

This Game is so Funny and Unserious Sometimes…💀😭
#fallout #fallout76 #fo76 #gaming #memes
MStanceGamingVG

MStanceGamingVG

13 likes

Books that taught me resistance isn’t optional.📚✊🏽
Books that taught me resistance isn't optional. When systems try to erase, silence, or divide us... storytelling becomes survival. Education becomes activism. And reading becomes resistance. Which of these have you read? What would you add? #booktok #queerbooks #bookclub #ice #losan
Maya Louise Ruiz 🍉

Maya Louise Ruiz 🍉

266 likes

LOST LORE: AlfSeiðr #36🔥📿SPECIAL🌋EDITION📿🔥
(3/3) This is LOST LORE: AlfSeiðr 🔥SPECIAL💥EDITION🔥Jewelry💍of⭕️the📿Norse💎 of which is part of the on going series (this being the 36th of 81-[of which the 82nd installment is being worked in the forge as I write this [so far, for this is a growing series] & our new long Hall is now available on
XEYE

XEYE

2 likes

And yes,@The Free Press are liberals, at the very least they are an odd mix of liberals neocons and fascist shills that care more about money than they do about ideology
Will McC

Will McC

0 likes

A book titled 'A Tale of Two Granadas: Custom, Community, and Citizenship in the Spanish Empire, 1568-1668' is open on a desk with pens and highlighters. Text overlays read 'time to Read' and 'Edition: Colonial Latin America'.
A person's hand holds open a book to pages 12 and 13, displaying text and footnotes about 'A Tale of Two Granadas'. Pens are visible in the background.
An open book shows page 17 with highlighted text, alongside several pens and highlighters on a white desk. The highlighted text includes 'socio-racial categories'.
Reading Time: Colonial Latin America Edition
Back with another history, book recommendation. So as a PhD student in history at Yale, I focus on colonial Latin America and the Caribbean. Lately I have been doing a ton of reading about Spanish America, looking specifically at colonial Columbia and Peru. If you’ve been following along my reading
Tianna 🥀

Tianna 🥀

23 likes

Israel is still killing Palestinians in Gaza.
Israel'HOLOCAUST against Indigenous Palestinians didn't stop on October 10, 2025. "Israel continues deadly Gaza truce breaches as US seeks to strengthen deal. About 100 Palestinians killed since ceasefire entered into effect on October 10, according to Gaza officials," reporte
Javier Soriano

Javier Soriano

28 likes

A Shar Pei dog, King, rests on a blanket with a visible red bite wound on its face, near the eye, after being bitten by another dog. Text overlay reads 'Dog BITE!!' and 'READ BELOW'.
A Shar Pei dog, King, sleeps peacefully on a light-colored blanket, showing a healing red mark from a dog bite on its cheek/ear area.
A close-up view of a fresh, bloody dog bite wound on the side of a Shar Pei's face, highlighting the severity of the injury.
Story Time: When King got bit by another dog 🥺😞
The day King got bit in the face by another dog was one of the scariest moments of my life as a dog mom. 💔🐾 Here’s what happened, what I learned, and how we helped King recover: ✨ What Happened: During a routine outing, another dog unexpectedly bit King’s face and had a firm grip. 😢 King stood
Ying&Yang

Ying&Yang

2 likes

National March for Palestine in Washington DC.
The rally and march "PALESTINE LAND DAY 2025" in Manahatta, Lenapehoking (Manhattan, New York City), was organized by the Shut It Down For Palestine coalition, on March 30, 2025. Support my independent journalism work here: https://www.javiersoriano.com/donate The rally was in Union S
Javier Soriano

Javier Soriano

6 likes

One-Room Cabin Life in the Smokies
Walking inside one of the oldest surviving settler cabins in Cades Cove, located in Great Smoky Mountains National Park. This one-room log cabin once held an entire family — cooking, gathering, and sleeping near a single fireplace for warmth. A steep staircase leads to a tiny loft above, likely us
travelingisfoodforthesoul

travelingisfoodforthesoul

6 likes

Must have apps for students
Pick your ipad back up! Here are 3 must have ipad apps for every student. Having the right apps can help you streamline some processes. For example, the Zotero ipad app syncs with the desktop app and you can annotate, highlight and take notes and they sync across platforms! LiquidText also syncs
jasmine

jasmine

2585 likes

Making my daughter a loaded Bible
Brianna Heaven~Lee

Brianna Heaven~Lee

27 likes

Book Review 📚
The way this book is packed with information. I appreciate the author being unbiased. Telling the true story from the beginning. Saying the names of those we need to know. Explaining how the UK and USA are unfortunately involved, past and present. I won’t spoil it. If you have a real interest in kn
Marlesia

Marlesia

547 likes

5 Classics by BIPOC Authors
My go to genres are usually sci-fi/fantasy and with some horror and mystery sprinkled in sometimes. So one of my goals this year is to read some classics. I chose 5 classics by authors of color for this goal: Their Eyes Were Watching God by Zora Neale Hurston Ceremony by Leslie Marmon Silko
Ash Stays Cozy

Ash Stays Cozy

9 likes

They r tied into the security apparatus following a national embarrassment, this is fundemental to fascist thought
Will McC

Will McC

1 like

Fortnite Refund
You need to get your Fortnite refund right now.
Lemon8er

Lemon8er

21 likes

A bedside table with books and a pink lamp, featuring text overlays 'anti-colonial fiction' and 'books to start decolonizing the mind'. The image is from Lemon8 user @bookrvws.
A hand holds 'Vampires of El Norte' by Isabel Cañas, described as romance/historical fiction exploring settler colonialism, family, and resistance. The book cover shows a woman in a red dress against a stormy desert.
The book 'Babel: An Arcane History' by R. F. Kuang is shown, a dark academia fantasy about British colonial power through translation, exploring imperialism, academia, and capitalism.
books that tackle colonialism
colonialism comes in many forms and has manifested in different ways across the world. Understanding it can be a long, fraught road, especially if you're not that into non-fiction history. If you're looking to get introduced to these topics here are three fiction books with anti-colonial se
bookrvws

bookrvws

1060 likes

An embassy that is illegal by the way because it recognises Israel’s incorrect and illegal claim to Jerusalem being the capital of its settler colonial project
Will McC

Will McC

0 likes

3/6🦋
#booktok #bookstagram #writingprompts #fantasy #writer
✰ ꜱᴋʏᴇ ☾

✰ ꜱᴋʏᴇ ☾

54 likes

hih_d.g._xp ⚜️

hih_d.g._xp ⚜️

0 likes

Guide to Self-Healing
Callista Kdk

Callista Kdk

16 likes

The Little Things in Life (Café Recs. Below)
Part 1: Coffee!☕️🤎 See my favorite coffee shops I’ve visited at the bottom of this post There’s just something about coffee… it’s not just how strong it is, or the way it tastes — its how it makes me feel grounded in a moment. It slows me down and helps me think about the world around me!
Tessa 🥀Moten

Tessa 🥀Moten

9 likes

April 23, 1635
The first public school in what would become the United States was established in Boston, Massachusetts. Known as the Boston Latin School, this boys-only public secondary school was led by schoolmaster Philemon Pormont, a Puritan settler... #todayinhistory #history #ushistory
GroovyHistory

GroovyHistory

5 likes

Comment info! The Northern lights are the best and easiest to see this year - 2026 and they won’t be like this again for 11 YEARS! Make sure to send this quick as the best time to go is Feb and March when the weather is the best/clearest #northernlights #iceland #icelandadventure #traveldeal
Jane and Gigi

Jane and Gigi

9 likes

#nativetiktok
🔻Lala🔻

🔻Lala🔻

14 likes

🌴 Most Underrated City in Florida
If you enjoy a tropical, historic town vibe, you won’t want to miss this! 📍St. Augustine, Florida 🗺️ Nestled in the northeast coast of FL, is St. Augustine. The oldest settler city in the US, St. Augustine has a rich history that’s been preserved wonderfully in the streets of the city. ✈
sydney 🫧🤍🪩

sydney 🫧🤍🪩

11 likes

cillemon464

cillemon464

2 likes

Two individuals stand atop a rock formation, holding Palestinian flags, overlooking a gathering of people and vehicles, some in traditional attire, during a solidarity event in Window Rock, AZ.
Navajo Nations stands in solidarity with Palestine protest 08-10-25 Window Rock AZ
Members of the Navajo Nation are calling on Diné leadership to speak up and stand with Palestine during a tumultuous time of war. Indigenous activists from other tribes around the U.S. have also voiced their concerns about the events in Gaza and have called for a cease-fire. They are showing t
🍉vanessabuhnessa🪶

🍉vanessabuhnessa🪶

46 likes

ADL’s launches Islamophobic “Mamdani Monitor” to intimidate the incoming mayor. #news #adl #zohranmamdani
Blakeley🧀🍟(They/Them)

Blakeley🧀🍟(They/Them)

7 likes

Playing Zeni Hajiki on Ghost Of Yotei
#luhhlayehh #talayeh #ghostofyotei #twitch #youtube
TUH-LAY-YUH

TUH-LAY-YUH

3 likes

Nakba 77. A year ago in New York City.
The protest "NAKBA 77" in Brooklyn and Manhattan, Lenapehoking (New York City), was organized by Within Our Lifetime (WOL), on Thursday, May 15, 2025. LONGER VIDEOS on my YouTube channel: https://m.youtube.com/@JavierSoriano1 People gathered in Cadman Plaza Park in Brooklyn. After t
Javier Soriano

Javier Soriano

0 likes

Originally posted 1 year ago on 9/30 @CJ on Substack #reflecting
CJ

CJ

0 likes

Barnes Trip🧚🏼‍♀️
Felt like it’s been forever since I came here 🫶🏼 my days are better when I get to visit my fav store ✨ Feels so good to be in my own world 📖✨🧚🏼‍♀️🍄 Follow my bookstagram for more🤍 @sammysllibrary or link in my bio #Lemon8Diary #travelwithme2024 #book recommendations #booksoflemon8
Samantha 🧚‍♀️

Samantha 🧚‍♀️

28 likes

Destination: Cape Ann, Massachusetts
locations: 1. Bear Skin Neck 2. Rockport 3. Bear Skin Neck 4. Roy Moore Lobster Company 5. Roy Moore Lobster Company 6. Old First Parish Burying Ground 7. Old First Parish Burying Ground 8. Crane Beach 9. Crane Beach 10. Crane Beach #capeann #rockport #ipswich #cranebeach
Sarah 🩵

Sarah 🩵

27 likes

i swear im fun at parties but i also said i dont listen to new jeans after i saw they use purple light to make them paler last night while we were drinkingㅠㅠㅠㅠㅠㅠ
Eunnuri (은누리) Lee

Eunnuri (은누리) Lee

3 likes

A corner building housing "Jerry's Army & Navy Store" and "Witch City Shop" with a witch logo, reflecting Salem's theme.
An old wooden sign for "Witch House" with "Salem, Mass." inscribed, hanging from chains against a blue sky and green foliage.
A street pole with "Explore Salem" banners and a sign pointing to the "Salem Witch Museum," noting "1692" and a witch icon.
Salem,Massachusetts
#Salem #mass #witches
Jessie Lynn

Jessie Lynn

13 likes

See more