Skip to content

Instantly share code, notes, and snippets.

View VinACE's full-sized avatar
💭
I may be slow to respond.

VinACE

💭
I may be slow to respond.
View GitHub Profile
@VinACE
VinACE / Learning Spark
Created January 28, 2020 06:00
Learning Spark
https://runawayhorse001.github.io/LearningApacheSpark/
@VinACE
VinACE / pyspark Join example
Created January 27, 2020 12:34
pyspark Join example
https://dzone.com/articles/pyspark-join-explained-with-examples
https://datascience-enthusiast.com/Python/big_data_spark_part2
http://www.malinc.se/math/latex/basiccodeen.php
@VinACE
VinACE / dictionary python
Created December 4, 2019 10:08
dictionary update python
https://stackoverflow.com/questions/59172728/pandas-dataframe-groupby-a-col-if-value-present-in-the-group-by-row-assign-the-s
data = {
's_id' :['G1','','','','G2','G3','G3','G4','','',''],
'r_id' : [2,2,12,12,20,45,45,9,13,13,14],
}
df2 = pd.DataFrame.from_dict(data)
df2
@VinACE
VinACE / gist:61bc9a07653a0f9c41096281c77bfc94
Created November 11, 2019 16:37
update-the-same-value-of-parent-column-as-child-list-values-in-pandas-data-frame
update-the-same-value-of-parent-column-as-child-list-values-in-pandas-data-frame
https://stackoverflow.com/questions/58803012/update-the-same-value-of-parent-column-as-child-list-values-in-pandas-data-frame/58804527#58804527
@VinACE
VinACE / replacing text in a file key:value pair in the replacement...
Last active November 7, 2019 03:59
replacing text in a file key:value pair in the replacement...
https://www.daniweb.com/programming/software-development/threads/70426/replace-words-in-a-file
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.lookup.html
@VinACE
VinACE / gist:2c7eeeb1e95095a6fc80fa1e32c15938
Last active September 5, 2019 11:15
python installation pip
pip3 install --upgrade --force-reinstall --no-cache-dir jupyter
https://github.com/jupyter/jupyter_core/issues/127
sudo /opt/miniconda2/bin/jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root &
https://mapr.com/blog/configure-jupyter-spark-python/
https://www.youtube.com/watch?v=d2zwYZFi4wQ -- Lec 19 | Applied Optimization | l∞, l0 norm balls and Matrix propertie | IIT Kanpur
@VinACE
VinACE / gist:34a90a3bc80e035f5e46627a90aa6c83
Created July 30, 2019 14:09
vncserver and taskel gnome desktop
https://www.techrepublic.com/article/how-to-install-the-gnome-desktop-on-ubuntu-server-18-04/
@VinACE
VinACE / install-tmux
Created May 15, 2019 12:42 — forked from philipsd6/install-tmux
Install tmux 2.3 on rhel/centos 7
# Install tmux on rhel/centos 7
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
tar -xvzf libevent-2.0.22-stable.tar.gz
cd libevent-2.0.22-stable
./configure --prefix=/usr/local