Skip to content

Instantly share code, notes, and snippets.

View pabloagn's full-sized avatar
Thinking

Pablo Aguirre pabloagn

Thinking
View GitHub Profile
@pabloagn
pabloagn / 01_sample_dataset_watches.csv
Last active March 24, 2023 18:45
Resources for Portfolio Project: Sentiment Analysis With Python
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 15 columns, instead of 14 in line 5.
marketplace,customer_id,review_id,product_id,product_parent,product_title,product_category,star_rating,helpful_votes,total_votes,vine,verified_purchase,review_headline,review_body,review_date
US,3653882,R3O9SGZBVQBV76,B00FALQ1ZC,937001370,"Invicta Women's 15150 ""Angel""",Watches,5,0,0,N,Y,Five Stars,Absolutely love this watch!,8/31/2015
US,14661224,RKH8BNC3L5DLF,B00D3RGO20,484010722,Kenneth Cole New York Women's KC4944,Watches,5,0,0,N,Y,I love thiswatch it keeps time wonderfully,I love this watch it keeps time wonderfully.,8/31/2015
US,27324930,R2HLE8WKZSU3NL,B00DKYC7TK,361166390,Ritche 22mm Black Stainless Steel,Watches,2,1,1,N,Y,Two Stars,Scratches,8/31/2015
US,7211452,R31U3UH5AZ42LL,B000EQS1JW,958035625,Citizen Men's BM8180-03E Eco-Drive,Watches,5,0,0,N,Y,Five Stars,"It works well on me. However, I found cheaper prices in other places.",8/31/2015
US,12733322,R2SV659OUJ945Y,B00A6GFD7S,765328221,Orient ER27009B Men's Symphony Automatic,Watches,4,0,0,N,Y,"Beautiful face, but cheap sounding links",Beautiful w
@pabloagn
pabloagn / filenames.txt
Last active March 2, 2023 14:28
Figures used in deep dive article: polars-a-lightning-fast-dataframe-library-for-python-and-rust
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-1.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-2.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-3.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-4.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-5.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-6.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-7.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-8.txt"></script>
<script src="https://gist.github.com/pabloagn/6833c60dc47b5bc6bda1222e89e78147.js?file=polars-9.txt"></script>
<script src="https://gist
@pabloagn
pabloagn / normal-distribution.tex
Last active February 24, 2023 00:52
A collection of gists used in blog post.
\begin{tikzpicture}
\begin{axis}[no markers, domain=0:10, samples=100,
axis lines*=left, xlabel=Test, ylabel=axis $y$,
height=6cm, width=10cm,
xticklabels={Test A,Test B,Test C,Test D, Test A,Test B,Test C,Test D}, ytick=\empty,
enlargelimits=false, clip=false, axis on top,
grid = major]
\addplot [fill=cyan!20, draw=none, domain=-3:3] {gauss(0,1)} \closedcycle;
\addplot [fill=orange!20, draw=none, domain=-3:-2] {gauss(0,1)} \closedcycle;
\addplot [fill=orange!20, draw=none, domain=2:3] {gauss(0,1)} \closedcycle;
@pabloagn
pabloagn / julia-for-beginners.txt
Created February 20, 2023 00:12
Figures used in blog article: julia-for-beginners
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.8.3 (2022-11-14)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
Correlation Coefficient for a Direct Relationship Correlation Coefficient for an Indirect Relationship Relationship Strength of the Variables
0 0 None/trivial
0.1 -0.1 Weak/small
0.3 -0.3 Moderate/medium
0.5 -0.5 Strong/large
1 -1 Perfect
@pabloagn
pabloagn / example-gists-1.py
Last active February 2, 2023 00:20
Example gists for blog post: What are GitHub Gists and How to Use Them
"""
Created on Wed Jan 18 19:23:00 2023
@author: Pablo Aguirre
GitHub: https://github.com/pabloagn
Website: https://pabloagn.com
Contact: https://pabloagn.com/contact
Part of Blog Article: what-are-github-gists-and-how-to-use-them
"""