title: Alternate approach for pdist() from scipy in Julia?
body: <p>My objective is to replicate the functionality of <code>pdist()</code> from <code>SciPy</code> in Julia.
  I tried using <code>Distances.jl</code> package to perform pairwise computation of distance between observations. However, the results are not same as seen in the below mentioned example.</p>
  <h1>Python Example:</h1>
  <pre class="lang-py prettyprint-override"><code>from scipy.spatial.distance import pdist
  a = [[1,2], [3,4], [5,6], [7,8]]
  b = pdist(a)
  print(b)
  
  output --&gt; array([2.82842712, 5.65685425, 8.48528137, 2.82842712, 5.65685425, 2.82842712])
  </code></pre>
  <h1>Julia Example:</h1>
  <pre><code>using Distances
  a = [1 2; 3 4; 5 6; 7 8]
  dist_function(x)  = pairwise(Euclidean(), x, dims = 1)
  dist_function(a)
  
  output --&gt; 
  4×4 Array{Float64,2}:
   0.0      2.82843  5.65685  8.48528
   2.82843  0.0      2.82843  5.65685
   5.65685  2.82843  0.0      2.82843
   8.48528  5.65685  2.82843  0.0
  </code></pre>
  <p>With reference to above examples:</p>
  <ol>
  <li>Is <code>pdist()</code> from <code>SciPy</code> in python has metric value set to <code>Euclidean()</code> by default?</li>
  <li>How may I approach this problem, to replicate the results in Julia?</li>
  </ol>
  <p>Please suggest a solution to resolve this problem.</p>
  <p>Documentation reference for pdist() :--&gt; <a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.pdist.html" rel="nofollow noreferrer">https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.pdist.html</a></p>
  <p>Thanks in advance!!</p>