Skip to content

Instantly share code, notes, and snippets.

@nicholasjhenry
Last active January 6, 2020 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasjhenry/84d8bad089501d2d9b41a8009c6304e7 to your computer and use it in GitHub Desktop.
Save nicholasjhenry/84d8bad089501d2d9b41a8009c6304e7 to your computer and use it in GitHub Desktop.
Quick example of Pandas
# main.py
# exec(open("./main.py").read(), globals())
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
my_numpy_array = np.random.rand(3)
my_series = pd.Series(my_numpy_array)
my_series.plot()
plt.show()
docker run -it --rm -w /app -v $(pwd):/app -e DISPLAY=10.0.1.15:0 amancevice/pandas bash -l
socat TCP-LISTEN:6000,reuseaddr,fork UNIX-CLIENT:\"$DISPLAY\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment