编程语言
首页 > 编程语言> > ipython

ipython

作者:互联网

启动

set LANG=zh_CN.UTF-8 && jupyter notebook --notebook-dir=d:\jupyter\ --ip='*' --NotebookApp.token='' --NotebookApp.password=''

Latex

$x$
from IPython.display import Latex
Latex('$x$')

\(x\)

Hive parquet to csv

import os
from pathlib import Path

def file_name(file_dir):
    for root, dirs, files in os.walk(file_dir):
        for file in files:
            if os.path.splitext(file)[-1] == '.parquet':
                my_file = Path(os.path.join(root, file+".csv"))
                if my_file.is_file()==False:
                    df=pd.read_parquet(os.path.join(root, file))
                    df.to_csv(os.path.join(root, file+".csv"))
    return

file_name("data/")

标签:--,root,file,ipython,path,csv,os
来源: https://www.cnblogs.com/yzpopulation/p/16280382.html