Python包df2onehot将pandas数据帧转换为结构化数据帧。

df2onehot的Python项目详细描述


df2onehot公司

PythonPyPI VersionLicenseDownloadsDownloadsCoffee

Star it if you like it!
  • df2onehot是一个Python包,用于将复杂的数据帧转换为一个热的密集数组。在

内容

安装

  • 从PyPI安装df2onehot(推荐)。df2onehot与python3.6+兼容,可以在Linux、macosx和Windows上运行。在
  • 它是根据麻省理工学院的许可证发行的。在

快速启动

^{pr2}$
  • 或者,从GitHub源安装df2onehot:
git clone https://github.com/erdogant/df2onehot.git
cd df2onehot
python -U setup.py install

导入df2onehot包

importdf2onehot

示例:

df=df2onehot.import_example()# Convertout=df2onehot.df2onehot(df)
# Force features (int or float) to be numeric if unique non-zero values are above percentage.out=df2onehot.df2onehot(df,perc_min_num=0.8)
# Remove categorical features for which less then 2 values exists.out=df2onehot.df2onehot(df,y_min=2)
# Combine two rules above.out=df2onehot.df2onehot(df,y_min=2,perc_min_num=0.8)

维修人员
  • Erdogan Taskesen,github:erdogant
  • 欢迎投稿。在
  • 如果你想为这项工作请我喝杯咖啡,我非常感激:)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java根据收到的短信找出手机的位置   java可以使用selenium在单个脚本中混合ios自动化和web自动化   java如何将@RequestParam映射到对象?   java JFrame关闭操作   java如何使用给定的JNDI名称连接到Websphere数据源?   hibernate Java一对多持久化哈希集   java如何设置JdbcUserDetailsManager以使用我的表?   java JUNIT测试Eclipse IDE引发错误   安卓如何根据Java中对象的一个成员变量从arraylist中删除另一个arraylist中存在的对象?   java使用枚举类中的方法,当在运行时获取枚举时   Java ArrayList中的安卓 NullPointerException   java如何使用jinterop在远程机器中编写二进制文件?   Java是跨平台的吗?   java将主题设置为具有自定义绘图功能的按钮   java Spring安全Oauth2:在Tomcat中成功注销,但在Glashfish中无法注销   使用HttpUrlConnection的Java类引发IOException,无法读取或写入   java Primefaces SelectOneRadio,选择了NoSelection选项   java在安卓中从字符串数组中删除元素   Java异常构造函数和方法   树映射中的java顺序错误