Skip to content

Instantly share code, notes, and snippets.

@johnmyleswhite
Created July 6, 2020 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmyleswhite/9108c0887150c7e36092f68ac1ad6c19 to your computer and use it in GitHub Desktop.
Save johnmyleswhite/9108c0887150c7e36092f68ac1ad6c19 to your computer and use it in GitHub Desktop.
x = [1, 2]
y = [3, 4]
z = [x, y]
z′ = copy(z)
z′[1] === x
import DataFrames: DataFrame
df = DataFrame(
x = [1, 2],
y = [3, 4],
)
df′ = copy(df)
df′[:x] === df[:x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment