Skip to content

Instantly share code, notes, and snippets.

View achillesp's full-sized avatar

Achilles Panagiotou achillesp

View GitHub Profile
@achillesp
achillesp / d3-barchart.html
Last active November 8, 2022 16:31
barchart using d3 with scale and axes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Simple Bar Chart</title>
<script src="https://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<style>
.bar:hover {
fill: cyan;
@achillesp
achillesp / tutorial1.py
Last active March 21, 2019 21:36
Python coding examples. I/O, math, conditionals, loops and functions.
# Python Code Examples & Tutorials
##########################################
# 1. Basic Input/Output
##########################################
message = "Winter is coming!"
print(message)
first_name = "Tyrion"
last_name = "Lannister"
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
df = pd.read_csv("UNdata_Export_20190228_181628056.csv")
df.head()
df.tail()