第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

re.search() 可以跳過整數(shù)對象嗎?

re.search() 可以跳過整數(shù)對象嗎?

森林海 2021-11-16 10:30:26
問題不言自明。我在包含 int 和 str 對象的 Pandas 數(shù)據(jù)框中有一列。當我嘗試使用 re.search() 搜索它時,它無法運行,因為(我相信)某些列包含整數(shù)并且它不知道該怎么做。有沒有辦法解決這個問題?我沒有看到忽略錯誤的論點。
查看完整描述

1 回答

?
慕俠2389804

TA貢獻1719條經(jīng)驗 獲得超6個贊

當我嘗試運行以下代碼時,我不知道如何修復此錯誤:


df = wrapper.read_pdf(r'C:\End_to_End\1902\PN\Scenario1_AllCorrectMin\EPR.pdf')

日志:


FileNotFoundError                         Traceback (most recent call last)

~\AppData\Local\Continuum\anaconda3\lib\site-packages\tabula\wrapper.py in read_pdf(input_path, output_format, encoding, java_options, pandas_options, multiple_tables, **kwargs)

    107     try:

--> 108         output = subprocess.check_output(args)

    109 


~\AppData\Local\Continuum\anaconda3\lib\subprocess.py in check_output(timeout, *popenargs, **kwargs)

    335     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,

--> 336                **kwargs).stdout

    337 


~\AppData\Local\Continuum\anaconda3\lib\subprocess.py in run(input, timeout, check, *popenargs, **kwargs)

    402 

--> 403     with Popen(*popenargs, **kwargs) as process:

    404         try:


~\AppData\Local\Continuum\anaconda3\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors)

    708                                 errread, errwrite,

--> 709                                 restore_signals, start_new_session)

    710         except:


~\AppData\Local\Continuum\anaconda3\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)

    996                                          os.fspath(cwd) if cwd is not None else None,

--> 997                                          startupinfo)

    998             finally:


FileNotFoundError: [WinError 2] The system cannot find the file specified


During handling of the above exception, another exception occurred:


JavaNotFoundError                         Traceback (most recent call last)

<ipython-input-3-010e34a004ec> in <module>()

----> 1 df = wrapper.read_pdf(r'C:\End_to_End\1902\PN\Scenario1_AllCorrectMin\EPR.pdf')


~\AppData\Local\Continuum\anaconda3\lib\site-packages\tabula\wrapper.py in read_pdf(input_path, output_format, encoding, java_options, pandas_options, multiple_tables, **kwargs)

    109 

    110     except FileNotFoundError as e:

--> 111         raise JavaNotFoundError(JAVA_NOT_FOUND_ERROR)

    112 

    113     except subprocess.CalledProcessError as e:


JavaNotFoundError: `java` command is not found from this Python process. Please ensure Java is installed and PATH is set for `java`

我嘗試在環(huán)境變量中更改和創(chuàng)建路徑,但沒有奏效。這是屏幕截圖:


查看完整回答
反對 回復 2021-11-16
  • 1 回答
  • 0 關注
  • 208 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號