# 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'))
๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ
- Dataframe Join 2019.11.04
- Linux์ ์ธ์ฆ์ ์ค์น 2019.11.02
- Linux Citrix Receiver ์ค์น์ libwebkit ์์กด์ฑ ๋ฌธ์ 2019.10.18
- Black Void Zsh ์ค์ 2019.10.12
Dataframe Join
Linux์ ์ธ์ฆ์ ์ค์น
Installing a root/CA Certificate
Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu:
-
Create a directory for extra CA certificates in /usr/share/ca-certificates:
sudo mkdir /usr/share/ca-certificates/extra -
Copy the CA .crt file to this directory:
sudo cp foo.crt /usr/share/ca-certificates/extra/foo.crt -
Let Ubuntu add the .crt file's path relative to /usr/share/ca-certificates to /etc/ca-certificates.conf:
sudo dpkg-reconfigure ca-certificatesTo do this non-interactively, run:
sudo update-ca-certificates
In case of a .pem file on Ubuntu, it must first be converted to a .crt file:
openssl x509 -in foo.pem -inform PEM -out foo.crt
Linux Citrix Receiver ์ค์น์ libwebkit ์์กด์ฑ ๋ฌธ์
1. Download the 3 required dependencies from Launchpad (not providing direct links so you can check it's legit):
a. https://launchpad.net/ubuntu/bionic/amd64/libicu60/60.2-3ubuntu3 (libicu60_60.2-3ubuntu3_amd64.deb (7.7 MiB))
b. https://launchpad.net/ubuntu/bionic/amd64/libjavascriptcoregtk-1.0-0/2.4.11-3ubuntu3
(libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb (1.8 MiB))
c. https://launchpad.net/ubuntu/cosmic/amd64/libwebkitgtk-1.0-0/2.4.11-3ubuntu3
(libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb (7.7 MiB))
2. Install the files in that order in the terminal
(assuming the files are in the Downloads folder)
cd ~/Downloads sudo dpkg -i libicu60_60.2-3ubuntu3_amd64.deb sudo dpkg -i libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb sudo dpkg -i libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb sudo dpkg -i icaclient_19.3.0.5_amd64.deb
This correctly installs Citrix Workspace. If you then get connection errors when trying to set it up, also implement step 3.
3. Fix the certificate error.
sudo ln -s /usr/share/ca-certificates/mozilla/* /opt/Citrix/ICAClient/keystore/cacerts/ sudo c_rehash /opt/Citrix/ICAClient/keystore/cacerts/
Black Void Zsh ์ค์
$ git clone https://github.com/black7375/BlaCk-Void-Zsh.git ~/.zsh
$ bash ~/.zsh/BlaCk-Void-Zsh.sh
Powerline Font ์ค์
$ sudo apt-get install fonts-powerline
or
# clone
$ git clone https://github.com/powerline/fonts.git --depth=1
# install
$ cd fonts
$ ./install.sh
# clean-up a bit
$ cd ..
$ rm -rf fonts
[์ถ์ฒ] ๋ฉ์ง ZSH ์ค์ !! (๋ค์ด๋ฒ ๋ฆฌ๋ ์ค ์ ์ ๊ทธ๋ฃน) |์์ฑ์ BlaCk7375