# How to use filter from inmemorydatasets package

**URL:** <https://discourse.julialang.org/t/how-to-use-filter-from-inmemorydatasets-package/89696>\
**Category:** Data\
**Tags:** question, inmemorydatasets\
**Created:** [November 3, 2022, 7:18am UTC](https://discourse.julialang.org/t/how-to-use-filter-from-inmemorydatasets-package/89696 "2022-11-03T07:18:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshdfyehd](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/akshdfyehd/32/39097_2.png) [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Post date:** [November 3, 2022, 7:18am UTC](https://discourse.julialang.org/t/how-to-use-filter-from-inmemorydatasets-package/89696/1 "2022-11-03T07:18:04Z")

</div>

Hi, I am looking for a way to extract all the rows that match PT from the column employment\_type,

 ![719d7ae1e348fd1c8438a42bc4c1309](https://global.discourse-cdn.com/julialang/original/3X/9/7/977fb94b2ead5eafaba7b295157b6183e53f4f87.jpeg)

I have tried to change dataset into dataframe but there are still same errors,  
 ![9f5695de7d7211f8b01616db34ae766](https://global.discourse-cdn.com/julialang/original/3X/8/7/871f5295225cb1273b0450a13a76f537fc894912.png)  
 ![42ac54a6436650d46031efa7abc49a7](https://global.discourse-cdn.com/julialang/original/3X/8/e/8ef518c17d34452780d39eea20fc8a706516723e.png)

can anyone please give me some advices about it? Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)\
**Post date:** [November 3, 2022, 8:45am UTC](https://discourse.julialang.org/t/how-to-use-filter-from-inmemorydatasets-package/89696/2 "2022-11-03T08:45:25Z")

</div>

Use `new` not `new()`.

---

<div class="post-metadata">

**Author:** ![akshdfyehd](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/akshdfyehd/32/39097_2.png) [@akshdfyehd](https://discourse.julialang.org/u/akshdfyehd)\
**Post date:** [November 3, 2022, 9:51am UTC](https://discourse.julialang.org/t/how-to-use-filter-from-inmemorydatasets-package/89696/3 "2022-11-03T09:51:14Z")

</div>

Hi, thanks for the reply!!  
when I was trying to filter FT, I realized there are many same job title here, for example there are multiple job title which is data analyst, do you know how to take each job title salary average? I just need one value for each job title, thanks in advance!

---

<div class="post-metadata">

**Author:** ![monopolynomial](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monopolynomial/32/34782_2.png) [@monopolynomial](https://discourse.julialang.org/u/monopolynomial)\
**Post date:** [November 3, 2022, 11:24pm UTC](https://discourse.julialang.org/t/how-to-use-filter-from-inmemorydatasets-package/89696/4 "2022-11-03T23:24:04Z")

</div>

I remember there are some threads about this, including [How to filter InMemoryDatasets](https://discourse.julialang.org/t/how-to-filter-inmemorydatasets/83478) the poster of the link also has a weblog about filtering

```julia
filter(ds, :empolyment_type, by = ==("PT"))

```
