Skip to content
View aic5's full-sized avatar

Highlights

  • Pro

Block or report aic5

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Useful Pandas Snippets Useful Pandas Snippets
    1
    # List unique values in a DataFrame column
    2
    pd.unique(df.column_name.ravel())
    3
    
                  
    4
    # Convert Series datatype to numeric, getting rid of any non-numeric values
    5
    df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True)
  2. [Python] A script for simple hashing... [Python] A script for simple hashing in SHA256
    1
    # coding: utf-8
    2
    
                  
    3
    import hashlib
    4
    import console
    5