The goal is to create a Python package that enables seamless integration between pandas DataFrames and Monday.com boards. This library allows you to easily read data from Monday.com boards into pandas DataFrames and write DataFrames back to Monday.com boards.
You cannot currently install this package from PyPI using pip install. Instead, clone the repository and install the requirements:
git clone https://github.com/wtbates99/pandas-monday.git
cd pandas-monday
pip install -r requirements.txt
import pandas_monday as pm
# Initialize client using environment variable MONDAY_API_TOKEN
client = pm.monday_pandas()
# Or explicitly pass your API token
client = pm.monday_pandas(api_token="your-api-token")
# Read from a board
df = client.read_board(board_id="your-board-id")
- Read Monday.com boards into pandas DataFrames
- Write pandas DataFrames to Monday.com boards
- Support for subitems
- Multiple write modes and overwrite options
- Automatic type conversion between pandas and Monday.com
- Error handling and validation
To use this package, you'll need a Monday.com API token. You can either:
- Set it as an environment variable named
MONDAY_API_TOKEN
- Pass it directly when initializing the client
To get an API token:
- Go to your Monday.com account
- Click on your avatar in the bottom left
- Go to Developer > API
- Generate a new token
import pandas_monday as pm
client = pm.monday_pandas()
# Basic read
df = client.read_board(board_id="your-board-id")
# Read with subitems
df = client.read_board(
board_id="your-board-id",
include_subitems=True
)
# Read specific columns
df = client.read_board(
board_id="your-board-id",
columns=['name', 'status', 'numbers']
)
import pandas as pd
import pandas_monday as pm
client = pm.monday_pandas()
# Read your data
df = pd.read_csv("data.csv")
# Write to board
client.write_board(
board_id="your-board-id",
df=df,
mode="replace", # Options: "append", "replace"
overwrite_type="archive" # Options: "archive", "delete"
)
Contributions are welcome! Please feel free to submit a Pull Request.