Peter Grant
Senior Scientific Engineering Associate at Lawrence Berkeley National Laboratory
Expertise: Data science and python
Education: Stanford University; University of Colorado, Boulder

Peter Grant is a building energy efficiency expert at Lawrence Berkeley National Laboratory. Grant received his M.S. in architectural engineering from the University of Colorado Boulder and a graduate certificate in innovation and entrepreneurship from Stanford. He’s worked as an energy efficiency expert and engineer since 2007.

Sort By
Most Recent
Most Recent
Oldest
32 Articles
matplotlib-python-tutorial
Use this step-by-step guide to start creating subplots in Matplotlib.
how to speed up pandas panda in a tree
OK, actually just get out of Pandas. Try NumPy, instead.
model-validation-test
Here’s how to choose the right model for your data through development, validation and testing.
bias-variance-tradeoff
Bias and variance are key concepts in data science and model development. Here’s what they mean and some tips on how to improve your model.
scikit-learn programmer's hands visible at laptop with overlay of data visualizations
This introduction to scikit-learn will have you applying AI in no time. Leverage these powerful Python tools to do the heavy lifting for you.
model fit
To do any data science of value we need models that accurately represent our data set. Here’s how to evaluate a model’s fit to your training data.
lamda functions python
Lambda functions are an extremely common form of code organization, simplification and clarification in Python. Here’s how to write them — fast.
enumerate zip sorted reversed Python
Here’s how to use enumerate, zip, sorted and reversed in Python. Trust me. You’ll thank me later.
nested list comprehension
If you thought list comprehensions improved your code, wait until you see this....
list comprehension python
List comprehensions dramatically reduce the length and complexity of your code. Here’s how to construct them.
split data sets
Data can often be large and unwieldy. Learn how to split overwhelming data sets for more manageable analysis.
python script data quality
Here’s how to write Python scripts to check your data for errors (minus the tedium of doing it yourself).