patwmcnamara / gads11-nyc-summer2014 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from datadave/gads9-nyc-spring2014-lectures
Lecture Repository for GADS11
This project forked from datadave/gads9-nyc-spring2014-lectures
Lecture Repository for GADS11
If I run the following lines of code I get a nice scatter plot of two variables from the dataframe with the dateseries visualized using color over the scatterplot using a colormap. So I also add the colorbar:
import pandas
import numpy
import matplotlib.pyplot as plt
dates = pandas.date_range('1/1/2000', periods=8)
df = pandas.DataFrame(randn(8, 2), index=dates, columns=['A', 'B'])
plt.scatter(df['A'],df['B'],c=df.index)
plt.colorbar()
and you get the following output:
I would like to display the dates as dates rather than integers in the colorbar. I've tried to run the following:
import pandas
import numpy
import matplotlib.pyplot as plt
import matplotlib
dates = pandas.date_range('1/1/2000', periods=8)
df = pandas.DataFrame(randn(8, 2), index=dates, columns=['A', 'B'])
plt.scatter(df['A'],df['B'],c=df.index)
plt.colorbar(format=matplotlib.dates.DateFormatter('%b %d %Y'))
but I get this error:
OverflowError: signed integer is greater than maximum
Is anyone else working with the Yelp API? I was working with one of your classmates today and we ran into a problem we couldn't figure out. The "offset" parameter doesn't seem to be working when we use it in the URL request. The "limit" parameter works as expected even with identical syntax.
Documentation here: http://www.yelp.com/developers/documentation/v2/search_api
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.