Git Product home page Git Product logo

common_function's Introduction

common_function

个人常用的一些函数

data_process.py

  • reduce_memory_usage 减少DataFrame所占内存

data_check.py

  • dataframe_compare_all 比较两个数据集共有索引、变量的值是否相同
  • dataframe_compare_sigle 查看两个数据集选定变量不等样本的值比较

index_values.py

  • get_index_values 计算指定的指标值,目前支持缺失率"missing"、同质比"homogeny"、类别变量最大计数类别"category"、类别变量最大计数类别(包括缺失值)"category_miss"、相关性"collinear"、psi值"psi"、iv值"iv"、特征重要度"importance"

analysis_address.py

  • get_ip_info_freeapi 调用freeapi接口解析ip
  • get_ip_info_taobao 调用taobao接口解析ip
  • get_ip_info_ip2region 调用ip2region解析ip,需准备ip2region.db和ip2Region.py
  • get_ip_info_batch 调用ip2region批量解析ip,需准备ip2region.db和ip2Region.py

common_function's People

Contributors

zglee96 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.