استورد وافحص وكرّر
تعرّف إلى دورة الاستيراد والاستكشاف اليومية.
استورد وافحص وكرّر درس مجاني في Data Science Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Data Science Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Data Science Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
The Daily Rhythm
Most analysis follows a simple loop: import a tool, inspect what you have, then repeat. Master this rhythm and notebooks stop feeling scary.
Import a Library
The first cell almost always brings in your tools. An import loads a library so its functions are ready for the rest of your work.
import pandasGive It a Short Alias
Typing pandas constantly is tiring, so people alias it to pd. The as keyword renames the import to something quick.
import pandas as pdThe Famous Two
Almost every data notebook opens with two imports: pandas as pd for tables and numpy as np for fast math.
import numpy as npLoad Some Data
Now pull data into the notebook. Reading a CSV into a table gives you a DataFrame, the object you will inspect and explore.
df = pd.read_csv("sales.csv")Peek at the Top
Never trust data you have not looked at. Calling head shows the first few rows so you can sanity-check what loaded.
df.head()Check the Shape
How big is this table? The shape attribute returns rows and columns as a pair, telling you the scale at a glance.
df.shapeList the Columns
Before analysis, learn what you have to work with. The columns attribute lists every column name in the table.
df.columnsOne-Line Overview
Want types and missing counts together? The info method prints a compact summary of every column in one go.
df.info()Inspect, Then Refine
What you see guides your next move. You might repeat the loop: import another tool, reload, or inspect a different slice.
Small Steps Beat Big Leaps
Run one cell, read the output, then write the next. This tight loop catches mistakes early instead of after a giant script.
Quick Check
You just loaded a CSV and want a fast look at the first handful of rows.
Recap: Import, Inspect, Repeat
You learned the everyday loop: import your tools, load data, inspect with head, shape, and info, then refine. That is data work in a nutshell. 🔁
الأسئلة الشائعة
هل درس «استورد وافحص وكرّر» مجاني؟
نعم — نص درس «استورد وافحص وكرّر» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Data Science Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Data Science Academy 4 دروس في المجموع.
ماذا ستتعلم في «استورد وافحص وكرّر»؟
تعرّف إلى دورة الاستيراد والاستكشاف اليومية. تتمرن على Data Science Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Data Science Academy؟
لا تُشترط خبرة سابقة. Data Science Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «استورد وافحص وكرّر»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Data Science Academy هذا؟
نعم. كل درس في Data Science Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- تثبيت Python بالطريقة السهلة
- الخلايا والأنوية وترتيب التشغيل
- ملاحظات Markdown بجانب التعليمات البرمجية
- استورد وافحص وكرّر