Skip to content

sunilkumarreddypunnati/pandas-dataframe-creation

Repository files navigation

🐼 Pandas DataFrame – Creation Techniques

This repository is a hands-on guide to creating Pandas DataFrames using different methods.
It covers column-oriented (dict of lists), row-oriented (dict of dicts), mixed data types, missing values, and custom indexing.

Perfect for beginners who want to understand how DataFrames are constructed and how Pandas handles data types and indexing.


📂 Task Progression: Beginner ➡️ Advanced

🧪 Task File 📄 Description 📷 Output Screenshot
task1.py 📋 Dict of Lists (Basic) – Create DataFrame with column-oriented structure, custom index Task 1
task2.py 🔍 Mixed Data Types – Float, string, boolean with .dtypes inspection Task 2
task3.py 📑 Dict of Dicts – Row-oriented data with inner keys as index Task 3
task4.py Missing Values Handling – Dict of dicts with unequal keys → NaN filling Task 4
task5.py 🔄 Custom Index & Column Order – Rearranging columns and labels Task 5
task6.py ⚖️ Comparison – Dict of Lists vs Dict of Dicts (structure & transpose) Task 6

✅ What I Practiced

  • 📋 Creating DataFrames from Dictionary of Lists (column-first thinking)
  • 📑 Creating DataFrames from Dictionary of Dictionaries (row-first thinking)
  • 🔍 Inspecting mixed data types using .dtypes
  • ❓ Handling missing values with NaN filling
  • 🔄 Setting custom index and column ordering
  • ⚖️ Understanding difference between column-oriented vs row-oriented structures

👨‍💻 About Me

📊 Sunil Kumar Reddy Punnati
🎓 MCA Graduate | 💼 Data Analyst Intern
📍 Tirupati, India

💡 Passionate about Python, Pandas, and Data Analysis
🚀 Preparing for full-time roles in Data Analytics & Software Development


🔗 Connect With Me

🌐 LinkedIn
💻 GitHub


🙌 Connect & Support

If you’re a recruiter, mentor, or fellow learner — let’s connect and grow together!
⭐ Star this repo if you found it helpful or inspiring.


ℹ️ Summary

A curated set of 6 Pandas DataFrame Creation Tasks covering beginner to advanced concepts.
Each task includes Python code (inside /pandas_dataframe_creation) and an output screenshot (inside /output) for easy reference.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages