Afri Code Datasets
Collection
A collection of datasets with coding conversations that are translated to 55 African languages. β’ 55 items β’ Updated
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Code-170k-bambara is a groundbreaking dataset containing 176,999 programming conversations, originally sourced from glaiveai/glaive-code-assistant-v2 and translated into Bambara, making coding education accessible to Bambara speakers.
conversations: A list of conversation turns, where each turn contains:from: The speaker ("human" or "gpt")value: The message content in Bambara{
"conversations": [
{
"from": "human",
"value": "[Question in Bambara]"
},
{
"from": "gpt",
"value": "[Answer in Bambara]"
}
]
}
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("michsethowusu/Code-170k-bambara")
# Access training data
train_data = dataset['train']
# Example: Print first conversation
for turn in train_data[0]['conversations']:
print(f"{turn['from']}: {turn['value']}")
@dataset{code170k_bambara,
title={Code-170k-bambara: Programming Conversations in Bambara},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/datasets/michsethowusu/Code-170k-bambara}
}
This dataset is released under the Apache 2.0 License.
Thank you for using Code-170k-bambara to advance programming education in Bambara! πβ¨