Skip to content

Instantly share code, notes, and snippets.

@jenncross
Last active March 12, 2019 15:47
Show Gist options
  • Save jenncross/aa7e33c1dc9743047b944bdbabe1e6e3 to your computer and use it in GitHub Desktop.
Save jenncross/aa7e33c1dc9743047b944bdbabe1e6e3 to your computer and use it in GitHub Desktop.
Balloon Data Parsing Code
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
fin = open("balloon.csv")
data = []
for line in fin:
data.append(float(line[1:6]))
data = np.array(data)
plt.figure()
plt.plot(data, 'kx')
plt.xlabel("Sample")
plt.ylabel("Radiation Level")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment