data science

Smooth line for barplot graph – R

The bar plot Start with a dataframe with the values already sorted, then place each into a vector. The three back into a dataframe The Bar Plot Place the bartop into a variable to use later The graph should look something like this A Ragged Line Take the Gini coef column from the original dataframe… […]


Building and Reindexing a Data Frame – Python

The list and the problem… I have a little list, and I would like to get a frequency count. so that i end up with something like this… Constructing the dataframe Step one is to put the list into a dataframe using the pandas module. The dataframe looks something like this… Getting a frequency count […]