Python Open Lab November 9

This week we learned pandas, which is a package built on top of Numpy. It has Dataframe as its core data structure which is very useful for dealing with table data. Dataframe is made up of multidimensional arrays with rows and columns. It supports heterogeneous types and missing data, which is a great feature. Pandas […]

Read More…

R Open Lab Fall 2018 – Data manipulation

Today we covered the topic of data manipulation. We first reviewed the basic ways to subset data frames such as logical expression and subset function. Then, we looked at ways to combine, merge, and split data frames. Finally, we covered the usage of package plyr. Here is the link to our open lab’s GitHub repository: https://github.com/wbh0912/R-Open-Lab-Fall-2018 […]

Read More…

Python Open Lab November 2

This week we learned about File IO. IO means input and output. So the content is basically about reading and writing file. Before doing any operations on file, we need to open the file. The command is open(filename, mode). ‘filename’ need to include the path of file. There are two ways to show the path, […]

Read More…

Python Open Lab October 26

This week we learned functions, which is very important for programmers. Functions are useful for procedural decomposition, maximize code reuse and minimize redundancy. Functions should be declared like a variable before using. def function(parameter1, parameter2…): do something return value ‘def’ is the keyword to show that we are defining a function. ‘function’ can be replaced […]

Read More…

Python Open Lab October 19

This week we mainly learned about condition statements. First we learned how to read user-input from console by using function input(). Input() can introduce user input to our program so user can define some values and program can get that. Then we looked at the definition of condition statement, which means when condition is met, […]

Read More…

Python Open Lab October 12

In this week, we continue to learn string, which is very important. Loop is also introduced. Examples like loop for a list, loop for a dictionary or loop for a string are taught. We learned some useful functions of string. len(str) — find the length of present string str.find(“ab”) — search a string in present […]

Read More…

R Open Lab Fall 2018 – More visualization

Today we will explore more about the advanced data visualization in R. First, we will review the basic graphical functions covered in the last open lab and learn how to use additional parameters to achieve different goals. Then, we will focus on the powerful package ggplot2. Here is the link to our open lab’s GitHub repository: https://github.com/wbh0912/R-Open-Lab-Fall-2018 If […]

Read More…