Skip to content

Commit

Permalink
Update new contents
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoming-qxm authored Mar 31, 2017
1 parent e0bdb58 commit 2179aa5
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 11 deletions.
3 changes: 3 additions & 0 deletions create_user_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@


def get_from_jdata_user():
    # 从做完年龄映射的NEW_USER_FILE中读取,
# 这步之前需要先运行explore_data.py中
# 的tranform_user_age函数
df_usr = pd.read_csv(NEW_USER_FILE, header=0)
df_usr = df_usr[["user_id", "age", "sex", "user_lv_cd"]]
return df_usr
Expand Down
8 changes: 6 additions & 2 deletions explore_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,9 @@ def explore_action_02(chunk_size=100000):

print(df[df["user_id"] == 27630])

# explore_user()
explore_action_02()
if __name__ == "__main__":
# 进行年龄映射
tranform_user_age()

# explore_user()
explore_action_02()
321 changes: 312 additions & 9 deletions explore_potential_user.ipynb

Large diffs are not rendered by default.

0 comments on commit 2179aa5

Please sign in to comment.