Skip to content

Instantly share code, notes, and snippets.

@mihkell
mihkell / gist:408ccbeae8da0ee7366e22a2ece93c41
Last active February 20, 2017 12:39
Example of diagonal swap of graph
import pandas as pd
import matplotlib.pyplot as plt
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 100000)
price = 'Price'
quantity = 'Quantity'
def make_table():
global price, quantity
table = pd.DataFrame({price:[1,3,3,2,5,6], quantity:[1,2,3,4,5,6]})