JERRYLSU

Joblib parallel
by Jerry Su, post on Mar 23, 2022

Reason is the light and the light of life.

Read in 2 mins
Numpy [None, …]
by Jerry Su, post on Nov 26, 2021

    None在对应位置增加一个维度(类似于unsqueeze(axis=))

    ...等价于[:,:,:]

    import numpy as np
    
    arr = np.random.randn(5, 10)
    arr.shape
    
    (5, 10)
    
    arr[None, ...].shape
    
    (1, 5, 10)
    
    arr[..., None].shape
    
    (5, 10, 1)
    
    arr[:, None, :].shape
    
    (5 …

    Read in 1 mins
    Pandas-regex
    by Jerry Su, post on Nov 02, 2021

    Reason is the light and the light of life.

    Read in 1 mins
    Pandas-list-mapping
    by Jerry Su, post on Nov 01, 2021

    Reason is the light and the light of life.

    Read in 1 mins
    Pandas-to-csv
    by Jerry Su, post on Sep 27, 2021

    Reason is the light and the light of life.

    Read in 1 mins
    Docker Python Mysql
    by Jerry Su, post on Sep 16, 2021

    docker pull mysql:5.7

    docker run -itd -p 8070:3306 -v /hadoop-data/work/sl/project/mysql/data:/var/lib/mysql -v /hadoop-data/work/sl/project/mysql/conf.d:/etc/mysql/conf.d --name=qa_mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7

    mysql -h host_ip -P port -u root -p123456

    show …

    Read in 1 mins
    Python - setdefault
    by Jerry Su, post on Aug 26, 2021

    Reason is the light and the light of life.

    Read in 1 mins
    Numpy np.where
    by Jerry Su, post on Aug 12, 2021

    Reason is the light and the light of life.

    Read in 1 mins
    Python Encode Decode
    by Jerry Su, post on Aug 05, 2021

    Reason is the light and the light of life.

    Read in 1 mins
    Python -m
    by Jerry Su, post on Aug 05, 2021

    Reason is the light and the light of life.

    Read in 1 mins