Skip to main content

Guides

Pandas

Requirements

Before starting the guide, finish the First Steps to Use AG guide.

AG provides a comprehensive guide to present all the main functionalities of op_pandas. The guide is divided in four parts, which you can access using the links below. To have a better experience, follow the proposed order:

1. Importing Data

2. Managing Data

3. Operations

4. Functions, Joins and Statistical Methods

In addition to the comprehensive guide, you can also check reference pages for the API:

PrivateDataFrame

PrivateSeries

API Reference

Pandas is a widespread open-source data manipulation and analysis library for Python. It provides data structures and functions to efficiently handle and manipulate structured data, such as tables or time series. Pandas offers powerful data cleaning, transformation, filtering, merging, and aggregation tools. It is widely used in data science, machine learning, and other domains for data preprocessing and analysis tasks, making it a valuable tool for working with structured data in Python.

AG provides a differentially private version of the Pandas Library (op_pandas), which lets users handle private data frames and series and perform various statistical analyses with differential privacy guarantees. Users familiar with Pandas will find minimal difficulty adjusting to the API methods.

To use AG’s op_pandas, you can import the library as presented in the following code block:

%%ag
from op_pandas import PrivateDataFrame, PrivateSeries
note

Private datasets can be loaded as PrivateDataFrames and PrivateSeries.

Resources

The following are additional resources that will be helpful when using the Pandas library: