Skip to content

Instantly share code, notes, and snippets.

@atodev
Last active December 16, 2024 21:08
Show Gist options
  • Select an option

  • Save atodev/42ce43ce5fd8e77d1107eb17a2f82789 to your computer and use it in GitHub Desktop.

Select an option

Save atodev/42ce43ce5fd8e77d1107eb17a2f82789 to your computer and use it in GitHub Desktop.

Revisions

  1. atodev revised this gist Dec 16, 2024. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion one_liners
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,9 @@
    to check catagorical and numerical cols
    --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
  2. atodev created this gist Dec 16, 2024.
    2 changes: 2 additions & 0 deletions one_liners
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    to check catagorical and numerical cols
    numerical_cols, categorical_cols = split_numerical_categorical(df_train)