Created
March 18, 2020 10:16
-
-
Save databyjp/f4dc712fa53dd93cd28091d8d1e4763c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Avoid accidentally modifying the source object | |
nf_df = pd.read_csv('srcdata/netflix_titles.csv') | |
nf_test1_df = nf_df | |
nf_test1_df['like'] = True | |
print(len(nf_df.columns)) | |
nf_df = pd.read_csv('srcdata/netflix_titles.csv') | |
nf_test2_df = nf_df | |
nf_test2_df = nf_test2_df.assign(like=True) | |
print(len(nf_df.columns)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment