Skip to content

Instantly share code, notes, and snippets.

View vicperotti's full-sized avatar

Vic Perotti vicperotti

  • @RITTigers
View GitHub Profile
@vicperotti
vicperotti / dualaxisgraph.R
Last active February 3, 2021 13:19
GGplot dual axis bar and line graph, with coeff to adjust scale between axes
coeff <-10000 #the factor to divide one access
ggplot(data=hdata2,mapping=aes(x=YearBuilt)) +
geom_bar() +
geom_line(mapping=aes(x=YearBuilt,y=SalePrice/coeff),stat="summary",fun="mean",color="blue",size=1) +
scale_y_continuous(
# Features of the first axis
name = "Number of Sales",
# Add a second axis and specify its features
# The labels piece creates whole integers rather than scientific notation
@vicperotti
vicperotti / NFL data grouped with differences!.ipynb
Created December 9, 2020 22:00
NFL data grouped by team to compare each game with team's max passing yards
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vicperotti
vicperotti / Wine+Reviews+from+Kaggle-With+FeatureNames.ipynb
Last active December 6, 2020 16:15
Wine Reviews showing feature importances from sklearn column transformer
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vicperotti
vicperotti / twoframes.py
Last active October 7, 2019 15:57
Adding Menuing to an existing Example for Tkinter
# modified from https://pythonprogramming.net/change-show-new-frame-tkinter/
# The code for changing pages was derived from: http://stackoverflow.com/questions/7546050/switch-between-two-frames-in-tkinter
# License: http://creativecommons.org/licenses/by-sa/3.0/
import tkinter as tk
LARGE_FONT = ("Verdana", 12)
class SeaofBTCapp(tk.Tk):

Keybase proof

I hereby claim:

  • I am vicperotti on github.
  • I am perotti (https://keybase.io/perotti) on keybase.
  • I have a public key whose fingerprint is 1FCF C2E9 9E38 5071 C562 DA64 F6BC D1ED 0F52 9647

To claim this, I am signing this object: