Apr 11 The topic of this week is the apply family in R. Recall that we learned loops as one of the basic concepts at the very beginning; you can review it from the Starter Kit and the Lab featuring More Fundamentals. Although loop is conceptually simple and intuitive, it is inefficient. The apply family […]
Python Open Labs: April 9, 2018
We spent class today reviewing functions and how they work in Python. Students were given problem statements and were asked to write functions to return the correct output. We went over multiple problems, and I’ll step through one in this blog post today. Imagine that you are given two inputs in the form strings: Jewels […]
Python Open Lab: Week 7
Due to the complex nature of functions, on April 1, we started with a review of functions with the following problem: We then introduced classes and methods: Classes: Python is an “object-oriented programming language.” This means that almost all the code is implemented using a special construct called classes. Programmers use classes to keep related things […]
April 5th, The Art of Data Visualization
Please join us Thursday April 5th for the third annual Art of Data Visualization event in Davis Auditorium, Schapiro Center for Engineering & Physical Science Research. For full schedule and to RSVP, visit the event site. […]
Spring 2018 R Open Lab: Exploratory Data Analysis
Mar 28 This week ‘s topic is Exploratory Data Analysis in R. The goal of the lab is to give attendants some ideas about what they can learn when they first have a data set in their hands and the corresponding approaches. The lab started with introduction of data frame’s concept and how to create […]
Python Open Labs: March 26, 2018
Over the past few weeks, students have been learning how to iterate through items – whether they may be in strings, lists, tuples, or dictionaries. Students have mainly been using for loops to grab the value of each item, and lots of progress has been in regards to writing them with little to no instruction. […]
Python Open Lab: Week 4
On March 5, we built on the lesson from week 3, and reviewed functions. Here is one of the problems you can try: The full jupyter notebook is available for this lesson. Please comment, or send us an email and we can make this lesson (or any other lesson from the semester) available to you! […]
Spring 2018 R Open Lab: Character Strings
Feb 28 For this week, the topic we discussed is character strings in R. This lab’s content is a steppingstone for text analysis. We started with introducing the concept of characters, character strings, and character string vectors in R. Then, we talked about operations on strings such as getting substring and combining different character strings. […]
Python Open Lab Week 3: Feb 26
For week three we decided to tackle strings, string methods, and functions: String Methods Strings are amongst the most popular types in Python. We can create them simply by enclosing characters in quotes. Python treats single quotes the same as double quotes. Creating strings is as simple as assigning a value to a variable. The […]
Spring 2018 R Open Lab: More Fundamentals
Last week, we walked through the R starter kit which introduced most of the useful basic concepts in R such as vectors, matrices, and loops. This week, we continued to talk about more basics in R and demonstrated examples. The goal of this lab is to get attendants a better understanding of how R language […]