Skip to content

Geeky Codes

Geeky Codes | AI Engineering, Data Engineering & Machine Learning Tutorials

  • Home
  • AI Engineering
    • RAG Fundamentals
    • LLM
  • Data Engineering
    • Apache Spark Tutorials
  • Machine Learning
    • ML Fundamentals
    • Regression

Appending to DataFrame

Appending to DataFrame | Pandas

July 2, 2025 by

Appending a new row to DataFrame import pandas as pd df = pd.DataFrame(columns = [‘A’, ‘B’, ‘C’]) Appending a row by a single column value: df.loc[0, ‘A’] = 1 df Appending a row, given list of values: df.loc[1] = [2, 3, 4] df Appending a row given a dictionary: df.loc[2] = {‘A’: 3, ‘C’: 9, … Read more

Categories Data Science, Machine Learning, Pandas, Python Tags Appending to DataFrame Leave a comment
  • 20 PySpark Interview Questions That Expose Real Production Knowledge — Part 5
    20 PySpark Interview Questions That Expose Real Production Knowledge — Part 5
  • Shuffle in Apache Spark: Why It Happens, Why It’s Expensive, and How to Optimize It
    Shuffle in Apache Spark: Why It Happens, Why It’s Expensive, and How to Optimize It
  • Master PySpark Window Functions: ROW_NUMBER, RANK, LAG, LEAD, Totals
    Master PySpark Window Functions: ROW_NUMBER, RANK, LAG, LEAD, Totals
  • 20 Data Engineering Interview Questions You Should Know for Databricks & PySpark Roles- Part 4
    20 Data Engineering Interview Questions You Should Know for Databricks & PySpark Roles- Part 4
  • DataFrame Transformations in Apache Spark: A Practical Guide
    DataFrame Transformations in Apache Spark: A Practical Guide
  • Apache Spark Tutorials
    Apache Spark Tutorials
  • What is Apache Spark? A Beginner-Friendly Guide to the Engine Behind Modern Data Engineering
    What is Apache Spark? A Beginner-Friendly Guide to the Engine Behind Modern Data Engineering
  • 20 Data Engineering Interview Questions You Should Know for Databricks & PySpark Roles
    20 Data Engineering Interview Questions You Should Know for Databricks & PySpark Roles
  • Retrieval-Augmented Generation (RAG) Fundamentals
    Retrieval-Augmented Generation (RAG) Fundamentals
  • Data Engineering Learning Roadmap
    Data Engineering Learning Roadmap
  • The Surprising Variability in AI Engineer Interviews
  • Master PySpark Window Functions: ROW_NUMBER, RANK, LAG, LEAD, Totals
  • 20 PySpark Interview Questions That Expose Real Production Knowledge — Part 5
  • Actions in Apache Spark: How Spark Actually Executes Your Code
  • DataFrame Transformations in Apache Spark: A Practical Guide
Read more: Appending to DataFrame | Pandas

  • Databricks Exam Questions Part 1
  • Databricks Exam Questions Part 2
  • Databricks Exam Questions Part 3
  • Databricks Exam Questions Part 4
  • Databricks Exam Questions Part 5
  • Databricks Exam Questions Part 6
© 2026 Geeky Codes • Built with GeneratePress
Loading Comments...