【问题标题】:How to resolve the error of this Shell Commands in JupyterNotebook如何解决 Jupyter Notebook 中此 Shell 命令的错误
【发布时间】:2020-10-28 19:05:13
【问题描述】:

!cat 数据集/Admission_Predict.csv

错误: 'cat' 未被识别为内部或外部命令, 可运行的程序或批处理文件。

【问题讨论】:

    标签: python pandas


    【解决方案1】:

    您可以使用%bash,然后在您的情况下使用 UNIX 命令cat

    %bash cat your_file.extension
    

    如果要执行多行,请使用%%bash

    %%bash
    cmd 1
    cmd 2
    ...
    cmd n
    

    【讨论】:

      【解决方案2】:

      试试!more datasets/Admission_Predict.csv

      【讨论】:

        猜你喜欢
        • 2021-06-29
        • 1970-01-01
        • 1970-01-01
        • 2020-05-15
        • 2022-01-10
        • 2022-07-12
        • 1970-01-01
        • 1970-01-01
        • 2020-01-24
        相关资源
        最近更新 更多