logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

异步async;httpx、aiohttp

参考:https://cuiqingcai.com/6160.htmlhttps://blog.csdn.net/cqcre/article/details/106132125async是python自带的异步库1、async结合httpximport httpximport asyncioasync def main():async with httpx.AsyncClient() as cli

airflow执行py文件;pyspark窗口函数、pandas_udf、udf函数;spark提交集群任务

参考:https://blog.csdn.net/hahayikeshu/article/details/1035526311、airflow安装pip install apache-airflowairflow initdbweb端口----- start the web server, default port is 8080airflow webserver -p 8080启动任务1、把执行

#spark
pyspark 协同过滤矩阵分解ALS 电影数据

数据下载:https://github.com/apache/spark/tree/master/data/mllib/als代码案例参考:https://github.com/apache/spark/blob/master/examples/src/main/python/ml/als_example.py需要注意代码里long(p[3])改成floatratingsRDD = pa...

apipost、postman等工具上传图片测试flask、fastapi的文件api接口

参考:https://blog.csdn.net/qq_15821487/article/details/119354129。选择from-data,下拉选择file上传文件发送即可。

文章图片
#fastapi
pip安装报错:ERROR: Could not build wheels for psutil;cannot import name packaging from pkg_resources

参考:https://github.com/giampaolo/psutil/issues/1143。解决方法:依据自己python版本安装,比如这里3.7版本。我这里ubuntu系统。

文章图片
#pip
gradio Audio页面录制不了声音,找不到麦克风;Error accessing the microphone: Cannot read properties of undefined

gradio服务器部署后,客户端浏览器点击麦克风录制不了;报错gradio Audio页面录制不了声音,找不到麦克风;这个报错信息可以邮件检查里看到Error accessing the microphone: Cannot read properties of undefined。

文章图片
github如果给第三方项目提PR(Pull Request)

参考:https://blog.csdn.net/Leventcoco/article/details/135871779点击fork然后就同步一份到自己名下了,后续修改在自己名下这项目上先修改:1、先下载代码到本地2、修改代码这里省略,自己在这clone下的项目里修改新增保存即可3、修改上传github建议直接命令行操作操作前设置下成功打印信息上面pull后在自己fork项目就会发现commit

文章图片
#github
esp32 烧录micropython;板子自带亮灯测试;外接交通灯测试

参考:https://www.bilibili.com/video/BV1G34y1E7tE注意:开发板通过usb线连接电脑上,首先安装好usb驱动,然后再通过thony烧录micropython;下图是烧录成功后可以看到两个红框内容表示成功了参考:https://www.bilibili.com/video/BV1G34y1E7tE*** http://docs.micropython.org/

C++类方法调用使用学习. :: ->; 调用类函数错误 error: cannot call member function without object

c++类的函数访问方式两种:1).函数名#include <iostream>using namespace std;class SimpleStat{public:static void pri(int* aa){int i;for(i=0;i<*aa;i++) cout << "hello!\n";}};int main() {cout<< "test

#c++#动态规划#开发语言
pandas apply多输出,多条件,drop删除符合条件的多行,根据条件去重drop_duplicates,dataframe整体转列表、字典、存入列表;字典字段展开成列;explode爆炸函数

多条件datas_33[(datas_33["p_cid"].notnull()) & (datas_33["p_sidx"] != -1) & (datas_33["p_sidx"] != -2 )]复制datas_35 = datas_33.copy()默认deep=True 深拷贝datas_35 = datas_33.copy(deep=False )applydef co

#sql#spark#hive
    共 60 条
  • 1
  • 2
  • 3
  • 6
  • 请选择