# C Contiguous Array in PyCall

**URL:** <https://discourse.julialang.org/t/c-contiguous-array-in-pycall/133559>\
**Category:** General Usage\
**Tags:** question, array, python\
**Created:** [October 30, 2025, 2:19pm UTC](https://discourse.julialang.org/t/c-contiguous-array-in-pycall/133559 "2025-10-30T14:19:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Frauke](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@Frauke](https://discourse.julialang.org/u/Frauke)\
**Post date:** [October 30, 2025, 3:42pm UTC](https://discourse.julialang.org/t/c-contiguous-array-in-pycall/133559/2 "2025-10-30T15:42:09Z")

</div>

Actually, I found a related post and this does the trick:

```julia-auto
using PyCall
np = pyimport("numpy")
nidaqmx = pyimport("nidaqmx")

data = ones(10)
dataMatrix = repeat(reshape(data, 1, :), 2, 1)

dataMatrix_np = PyReverseDims(dataMatrix)

println("Data matrix flags: $(dataMatrix_np.flags)")

```

Here is the link to the post:

> [@Equivalent of numpy.ascontiguousarray in Julia](https://discourse.julialang.org/t/equivalent-of-numpy-ascontiguousarray-in-julia/4525):
>
> I would like to change a non-contiguous array to a contiguous one. What is the fastest way to do that in Julia?

---

_[View the full topic](https://discourse.julialang.org/t/c-contiguous-array-in-pycall/133559)._
