---
title: "Discussion on \"Data Wrangling with Python Datatable - Replicate Pandas' Map Function\" | Hashnode"
description: "Discussion on \"Data Wrangling with Python Datatable - Replicate Pandas' Map Function\". Link to Source data\nTask: Create a new column by mapping the values in the city column to the city_state dictionary\nfrom datatable import dt, f\n\nraw_data = {\"first_name\": [\"Jason\", \"Molly\", \n                           \"Tina\", \"Jake\", \"Amy\"],\n        ..."
url: "https://hashnode.com/posts/data-wrangling-with-python-datatable-replicate-pandas-map-function/5ff2eff372eafd0f1c8c5f26"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Data Wrangling with Python Datatable - Replicate Pandas' Map Function](https://datawrangler.hashnode.dev/data-wrangling-with-python-datatable-replicate-pandas-map-function?utm_source=hashnode&utm_medium=feed)

Link to Source data Task: Create a new column by mapping the values in the city column to the city\_state dictionary from datatable import dt, f raw\_data = {"first\_name": \["Jason", "Molly", "Tina", "Jake", "Amy"\], ...

Jan 4, 2021 · 3 min read · datawrangler.hashnode.dev  
Read the article

-   [#data-science](https://hashnode.com/tag/data-science)
-   [#data](https://hashnode.com/tag/data)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Samuel Oranyeli](https://hashnode.com/@Samukweku)

@Samukweku · Australia

  
[View profile](https://hashnode.com/@Samukweku)

Data wrangler

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
