摘要:
1. Assign a string to a variable is the same as other language by using "=".2. Use $ sign to access a variable. echo $FOOD 3. Use export to create a e
阅读全文
posted @ 2016-11-02 01:30
阿难1020
阅读(149)
推荐(0)
摘要:
1. pwd shows the current folder you are working on. 2. Type cd / to go to the root dictionary. 3. Absolute route (cd /home/dq) vs. relative path (cd h
阅读全文
posted @ 2016-10-29 00:58
阿难1020
阅读(181)
推荐(0)
摘要:
1. Histogram vs. Bar chart With bar charts, each column represents a group defined by a categorical variable; and with histograms, each column represe
阅读全文
posted @ 2016-10-27 07:58
阿难1020
阅读(127)
推荐(0)
摘要:
1. Read the data: 1.1 If the data is not in .csv file. We have to search for the special read method all_survey = pandas.read_csv("schools/survey_all.
阅读全文
posted @ 2016-10-25 03:00
阿难1020
阅读(113)
推荐(0)
摘要:
1. Find correlations for each type of data by using corr() correlations = combined.corr(method = "pearson") print(correlations["sat_score"]) note: The
阅读全文
posted @ 2016-10-23 10:24
阿难1020
阅读(128)
推荐(0)
摘要:
1. When we match a set of data with duplicated values in a column, and we want to use this column as an unify column which is sharing for each databas
阅读全文
posted @ 2016-10-21 04:49
阿难1020
阅读(126)
推荐(0)
摘要:
1. Read mutiple data files; import pandas as pd data_files = [ "ap_2010.csv", "class_size.csv", "demographics.csv", "graduation.csv", "hs_directory.cs
阅读全文
posted @ 2016-10-19 07:58
阿难1020
阅读(165)
推荐(0)
摘要:
1. The way to create a DataFrame with its own index and certain columns. state_pop = pd.read_csv("state_population.csv") counts = police_killings["sta
阅读全文
posted @ 2016-10-18 07:56
阿难1020
阅读(143)
推荐(0)
摘要:
recent_grads["ShareMen"] = recent_grads["Men"]/recent_grads["Total"] # Create a new column named "ShareMen" , the value is column 'Men' dedide "Total"
阅读全文
posted @ 2016-10-18 02:37
阿难1020
阅读(477)
推荐(0)
摘要:
1. If we create a DataFrame, each of the column inside of it is already a set of Series. Does not necessary to change them into a one-column Dataframe
阅读全文
posted @ 2016-10-15 06:43
阿难1020
阅读(151)
推荐(0)