# The photo is from a Python code so how could I have the same result in Julia?

**URL:** <https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [March 31, 2022, 6:27pm UTC](https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831 "2022-03-31T18:27:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lamis\_Njeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lamis_njeh/32/34292_2.png) [@Lamis\_Njeh](https://discourse.julialang.org/u/Lamis_Njeh)\
**Post date:** [March 31, 2022, 6:27pm UTC](https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831/1 "2022-03-31T18:27:03Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/d/5/d5efa08288ac649bd62f72ac34938ada2d9f7750.png)

---

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [March 31, 2022, 6:30pm UTC](https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831/2 "2022-03-31T18:30:11Z")

</div>

Make a dataframe containing the same data. See the package [GitHub - JuliaData/DataFrames.jl: In-memory tabular data in Julia](https://github.com/JuliaData/DataFrames.jl)

It’s hard to give any better answer than that to such a low effort question. For advice on how to get better quality help through asking better targeted questions, I’d strongly advise reading this thread: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [March 31, 2022, 7:07pm UTC](https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831/3 "2022-03-31T19:07:41Z")

</div>

```julia
julia> isnan.(df)

```

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [March 31, 2022, 7:08pm UTC](https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831/4 "2022-03-31T19:08:33Z")

</div>

No, the equivalent of `na` in this context is `missing`. But I agree, OP needs to provide a minimum working example.

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [March 31, 2022, 7:09pm UTC](https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831/5 "2022-03-31T19:09:18Z")

</div>

In the other thread he talks about NaN.

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [March 31, 2022, 7:11pm UTC](https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831/6 "2022-03-31T19:11:20Z")

</div>

the other minimal answer than could be:

```julia
ismissing.(df)

```

---

<div class="post-metadata">

**Author:** ![Lamis\_Njeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lamis_njeh/32/34292_2.png) [@Lamis\_Njeh](https://discourse.julialang.org/u/Lamis_Njeh)\
**Post date:** [April 1, 2022, 6:03pm UTC](https://discourse.julialang.org/t/the-photo-is-from-a-python-code-so-how-could-i-have-the-same-result-in-julia/78831/7 "2022-04-01T18:03:53Z")

</div>

thank you sir
