diff --git a/src/sos/Julia/kernel.py b/src/sos/Julia/kernel.py
index <HASH>..<HASH> 100644
--- a/src/sos/Julia/kernel.py
+++ b/src/sos/Julia/kernel.py
@@ -162,7 +162,9 @@ function py_repr_n(obj)
   # The problem of join() is that it would ignore the double quote of a string
   return "[" * join([mapslices(py_repr, obj, 1)], ",") * "]"
 end
-
+function has_row_names(df)
+  return !(names(df)[1]==collect(1:size(df)[1]))
+end
 function py_repr(obj)
     if isa(obj, Matrix)
       py_repr_matrix(obj)
add a function to julia to check if an array-like type of data has row name