Skip to content

Instantly share code, notes, and snippets.

View gschivley's full-sized avatar

Greg Schivley gschivley

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gschivley
gschivley / CO2_WRONG_GS_edit.ipynb
Created December 2, 2016 13:44
CO2_WRONG - GS edit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gschivley
gschivley / LCA Discussion forum - Dynamic LCA.ipynb
Last active March 30, 2017 15:10
ghgforcing - LCA discussion forum presentation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gschivley
gschivley / Transform data to tidy.ipynb
Created February 7, 2018 15:24
Transform emissions data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gschivley
gschivley / dash.css
Last active December 19, 2023 15:57
Dash styleguide by Chris P
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––
- Plotly.js
- Grid
- Base Styles
- Typography
- Links
- Buttons
- Forms
- Lists
@gschivley
gschivley / altair_app.py
Created May 13, 2018 18:32
Altair plot in Plotly Dash
# -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import pandas as pd
import sqlalchemy
import altair as alt
import io
from vega_datasets import data
@gschivley
gschivley / Luminance comparison.ipynb
Created June 8, 2018 18:07
Luminance comparison
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""
Short script for loading/merging EIA860 generator, utility, and plant info.
Assumes that files are in the same folder as this script.
"""
import pandas as pd
util_fn = '1___Utility_Y2017.xlsx'
utility = pd.read_excel(util_fn, header=1, na_values=[' '])