Skip to content

Instantly share code, notes, and snippets.

@atodev
Last active December 16, 2024 21:08
Show Gist options
  • Save atodev/42ce43ce5fd8e77d1107eb17a2f82789 to your computer and use it in GitHub Desktop.
Save atodev/42ce43ce5fd8e77d1107eb17a2f82789 to your computer and use it in GitHub Desktop.
[kaggle]
--to check catagorical and numerical cols
numerical_cols, categorical_cols = split_numerical_categorical(df_train)
--finding all the non-unique items in catagorical cols
for c in categorical_cols:
print(c, "n unique:",df_all[c].nunique())
-- Colab to Kaggle
!mkdir ~/.kaggle
!cp kaggle.json ~/.kaggle/
!chmod 600 ~/.kaggle/kaggle.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment