Skip to content

Instantly share code, notes, and snippets.

@Cross22
Cross22 / test.html
Created October 14, 2018 04:18
rectangle
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.rectangle {
height: 50px;
width: 100px;
background-color: #555;
}
import pandas as pd
def fixCountryNames(c):
return c.split('(')[0].rstrip().strip('0123456789')
def fixEnergyNames(energy):
# Rename index labels using a string processing function
energy.rename(index=fixCountryNames, inplace=True)
# Rename index labels using a dictionary
@Cross22
Cross22 / index.html
Last active April 13, 2017 20:58
D3 test
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.links {
stroke: #000;
stroke-opacity: 0.2;
}
.polygons {