Release.zip
0.43MB

# left์— ์กด์žฌํ•˜๋Š” Key๊ฐ€ ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋งŒ merge
df_merge_how_left = pd.merge(df_left, df_right, how='left', on='KEY') 

# right์— ์กด์žฌํ•˜๋Š” Key๊ฐ€ ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋งŒ merge
df_merge_how_right = pd.merge(df_left, df_right, how='right',  on='KEY') 

# left ๋ฐ right ์–‘์ชฝ์— ์กด์žฌํ•˜๋Š” Key๊ฐ€ ์žˆ๋Š” ๋ฐ์ดํ„ฐ๋งŒ merge
df_merge_how_inner = pd.merge(df_left, df_right, how='inner', on='KEY') 

# ์–‘์ชฝ์— ์กด์žฌํ•˜๋Š” ๋ชจ๋“  Key๊ธฐ์ค€ merge
df_merge_how_outer = pd.merge(df_left, df_right, how='outer', on='KEY') 

# ๊ฐ ๋ฐ์ดํ„ฐ๊ฐ€ left, right ๋˜๋Š” ์–‘์ชฝ์˜ ์ถœ์ฒ˜์ธ์ง€ ํ‘œ์‹œ(_merge๋ž€ ์ปฌ๋Ÿผ์— ํ‘œ์‹œ)
pd.merge(df_left, df_right, how='outer', on='KEY', indicator=True) 

#์–‘์ชฝ์˜ ์ปฌ๋Ÿผ๋ช…์ด ์ค‘๋ณต๋ ๋•Œ _left๋‚˜ _right๋ฅผ ์ปฌ๋Ÿผ๋ช…์— ์ถ”๊ฐ€ํ•จ
pd.merge(df_left_2, df_right_2, how='inner', on='KEY', suffixes=('_left', '_right')) 
./configure --with-features=huge --enable-cscope --enable-multibyte --enable-python3interp --with-python3-config-dir=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu --enable-fail-if-missing
make
sudo make install

Fisa Vim Config (http://fisadev.github.io/fisa-vim-config/)

sudo apt-get install curl vim exuberant-ctags git ack-grep
sudo pip install pep8 flake8 pyflakes isort yapf

mv ~/.vimrc ~/.vimrc.org
wget -O ~/.vimrc  https://raw.github.com/fisadev/fisa-vim-config/master/.vimrc 

 

1. Neovim์„ ์„ค์น˜ํ•œ๋‹ค.

2. Nvim์˜ fisa-dev๋ฅผ ์„ค์ •ํ•œ๋‹ค.

    http://nvim.fisadev.com/

 

Fisa-nvim-config by fisadev

This is my personal NeoVim configuration, built according to my personal preferences, without any justification to think it's the best possible vim configuration. If you like it, great! :) It's mainly oriented to python software development, but many of it

nvim.fisadev.com

3. coc-nvim (intellisense plugin)์„ ์„ค์น˜ํ•œ๋‹ค.

    ๊ฐ€. Node.js์„ค์น˜       

curl -sL install-node.now.sh/lts | sudo bash

    ๋‚˜.  Yarn ์„ค์น˜

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

   ๋‹ค. VIM Plugin์„ค์น˜    

curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

   ๋ผ. ~/.config/nvim/init.vim์— ์•„๋ž˜ ๋‚ด์šฉ ์ถ”๊ฐ€

call plug#begin('~/.config/nvim/plugged')
" Use release branch
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Or latest tag
Plug 'neoclide/coc.nvim', {'tag': '*', 'branch': 'release'}
" Or build from source code by use yarn: https://yarnpkg.com
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
call plug#end()

 

   ๋งˆ. nvim์‹คํ–‰ํ›„ coc ๋ชจ๋“ˆ ์„ค์น˜

        :CocInstall coc-json

        :CocInstall coc-python

        :CocInstall coc-pypl

   ๋ฐ”.  ./config/nvim/coc-settings.json ํŒŒ์ผ์— Python language server์„ค์ • ์ถ”๊ฐ€

{
  "languageserver": {
      "golang": {
            "command": "gopls",
            "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
            "filetypes": ["go"]
          },
      "ccls": {
            "command": "ccls",
            "filetypes": ["c", "cpp", "objc", "objcpp"],
            "rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
            "initializationOptions": {
                     "cache": {
                                "directory": "/tmp/ccls"
                              }
                   }
           },
      "python": {
         "command": "python",
         "args": [
              "-mpyls",
              "-vv",
              "--log-file",
              "/tmp/lsp_python.log"
            ],
         "trace.server": "verbose",
         "filetypes": [
              "python"
            ],
         "settings": {
              "pyls": {
                     "enable": true,
                     "trace": {
                              "server": "verbose"
                            },
                     "commandPath": "",
                     "configurationSources": [
                              "pycodestyle"
                            ],
                     "plugins": {
                              "jedi_completion": {
                                         "enabled": true
                                       },
                              "jedi_hover": {
                                         "enabled": true
                                       },
                              "jedi_references": {
                                         "enabled": true
                                       },
                              "jedi_signature_help": {
                                         "enabled": true
                                       },
                              "jedi_symbols": {
                                         "enabled": true,
                                         "all_scopes": true
                                       },
                              "mccabe": {
                                         "enabled": true,
                                         "threshold": 15
                                       },
                              "preload": {
                                         "enabled": true
                                       },
                              "pycodestyle": {
                                         "enabled": true
                                       },
                              "pydocstyle": {
                                         "enabled": false,
                                         "match": "(?!test_).*\\.py",
                                         "matchDir": "[^\\.].*"
                                       },
                              "pyflakes": {
                                         "enabled": true
                                       },
                              "rope_completion": {
                                         "enabled": true
                                       },
                              "yapf": {
                                         "enabled": true
                                      }
                           }
                  }
           }
      }
    }
}

4. nvim default editor์„ค์ •

sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi 
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 
sudo $ update-alternatives --config vim 
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor

 

+ Recent posts