Skip to main content

Command Palette

Search for a command to run...

Exploring Pandas Data Structures 🧩

Published
β€’2 min read
Exploring Pandas Data Structures 🧩
P

πŸ‘‹ Hello! I'm passionate about DevOps and have over 1+ years of experience in the field. I'm proficient in a variety of cutting-edge technologies and always motivated to expand my knowledge and skills. Let's connect and grow together!

SKILLS:

πŸ”Ή Languages & Runtimes: Python, Shell Scripting, HCL, YAML πŸ”Ή Cloud Technologies: AWS, Microsoft Azure, GCP πŸ”Ή Infrastructure Tools: Docker, Terraform, AWS CloudFormation πŸ”Ή Other Tools: Linux, Git and GitHub Actions, Jenkins, Jira, GitLab (beginner), Docker, AWS DevOps πŸ”Ή Web Development: HTML, CSS, Bootstrap, Python, SQL

Job & Responsibilities:

πŸš€ Improved development efficiency by implementing CI/CD pipelines, resulting in a 30% reduction in deployment time on the test server. πŸ”’ Strengthened deployment and testing reliability by utilizing Docker containers and optimizing Dockerfile, reducing development issues on the test server by 20%. βš™οΈ Automated S3 bucket log creation with Shell scripting, eliminating 100% of manual search and saving 2 hours per week. πŸ“… Scheduled EC2 instance start/stop using Lambda functions and Event Bridge, leading to a 25% decrease in infrastructure costs. πŸ”§ Utilized AWS, Linux, Python, Docker, Shell scripting, Terraform, Jenkins Pipelines, and automation to streamline workflows and improve overall system performance.

I'm very detail-oriented and possess strong written and verbal communication skills. As a high performer with a possibility mindset, I strive to solve problems using efficient approaches.

Let's Connect & Grow:

If you find my profile suitable for the role you are searching for, please feel free to reach out to me at sumanprasad9766@gmail.com.

Introduction

Pandas offers three primary data structures: Series, DataFrame, and Index Objects. Each plays a crucial role in handling and manipulating data efficiently.

Series πŸ“Š

A Series is a one-dimensional labeled array capable of holding any data type. It consists of two arrays: one holding the data and the other containing labels (index).

Use Case: Creating a Series

# Example
import pandas as pd

# Create a Series from a list
data = [10, 20, 30, 40, 50]
series = pd.Series(data, name='MySeries')

# Display the Series
print(series)

DataFrame πŸ“ˆ

A DataFrame is a two-dimensional tabular data structure, similar to a spreadsheet or SQL table. It consists of rows and columns, where each column can be of a different data type.

Use Case: Creating a DataFrame

# Example
import pandas as pd

# Create a DataFrame from a dictionary
data = {'Name': ['Alice', 'Bob', 'Charlie'],
        'Age': [25, 30, 35],
        'City': ['New York', 'San Francisco', 'Los Angeles']}

df = pd.DataFrame(data)

# Display the DataFrame
print(df)

Index Objects πŸ”

An Index Object is responsible for labeling axes in Pandas objects. It enables efficient data selection and manipulation.

Use Case: Customizing Index

# Example
import pandas as pd

# Create a DataFrame with a custom index
data = {'Value': [10, 20, 30, 40, 50]}
custom_index = ['a', 'b', 'c', 'd', 'e']

df = pd.DataFrame(data, index=custom_index)

# Display the DataFrame with custom index
print(df)

Pandas' data structures provide a flexible and intuitive way to work with data, whether you're handling time-series data, performing statistical analysis, or simply exploring datasets. Understanding these structures is fundamental to unleashing the full power of Pandas in your data science and analysis projects. πŸš€

K

No

P

What happened?

More from this blog

D

DeployToCloud

405 posts

πŸ‘‹ Welcome to my Hashnode blog! I'm a DevOps Engineer with 2+ years of experience. Join ~5k followers and explore 320+ blogs on Python, AWS, Docker, Jenkins, Linux, and more. Let's connect & grow πŸš€