【问题标题】:not able to import dataframe from pandas while using google colab使用 google colab 时无法从 pandas 导入数据框
【发布时间】:2020-01-24 06:18:44
【问题描述】:
import pandas as pd
from pandas import dataframe
import datetime
import pandas.io.data
import matplotlib.pyplot as plt

ImportError: 无法导入名称“数据框”

【问题讨论】:

  • 试试这个from pandas import DataFrame

标签: python pandas dataframe google-colaboratory


【解决方案1】:

尝试使用此导入数据框:

import pandas as pd
data_df = pd.DataFrame(data)

【讨论】:

    猜你喜欢
    • 2021-08-14
    • 2021-06-06
    • 2022-08-06
    • 2021-01-12
    • 2020-11-28
    • 2020-07-19
    • 2019-12-29
    • 1970-01-01
    • 2020-02-26
    相关资源
    最近更新 更多