Introduction to Pandas
If NumPy is a powerful calculator, Pandas is a complete spreadsheet with programming capabilities. It's built on top of NumPy and provides labeled, structured data - exactly what we deal with in finance.
Pandas Series: Labeled Data
A Series is like a NumPy array but with labels (an index):
جارٍ تحميل ساحة تجربة Python...
Adding Meaningful Labels
جارٍ تحميل ساحة تجربة Python...
Pandas DataFrame: Your Financial Spreadsheet
A DataFrame is a table with rows and columns - the most important data structure for financial analysis:
جارٍ تحميل ساحة تجربة Python...
Viewing Data
جارٍ تحميل ساحة تجربة Python...
Accessing Columns
جارٍ تحميل ساحة تجربة Python...
Adding New Columns
جارٍ تحميل ساحة تجربة Python...
Practice: Create a Portfolio DataFrame
جارٍ تحميل تمرين Python...
Practice: Add Weight Column
جارٍ تحميل تمرين Python...
Key Takeaways
- Pandas Series = NumPy array + labels
- Pandas DataFrame = table with rows and columns
- Access columns with
df['ColumnName'] - Add columns with
df['NewColumn'] = calculation - Use
.head(),.tail(),.shapeto explore data - DataFrames make financial calculations intuitive
Next, we'll learn about filtering, sorting, and more DataFrame operations!
التالي · الدرس 11 من 26
DataFrame Operations
قراءة 1 دقيقة
أنهيت 10 من 26 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

