【问题标题】:How can I get the highlight data from the index as a string or How can I print it out?如何从索引中以字符串形式获取突出显示数据或如何将其打印出来?
【发布时间】:2021-04-21 19:35:27
【问题描述】:

我使用的数据如下:

我想获得特定的突出显示值,但不知道该怎么做。任何帮助将不胜感激!谢谢!!

【问题讨论】:

  • 试试这个,earthquakes.index.values?
  • 它不工作;__;,我只想要一个数据
  • 如果你只想要第一个:地震.index.values[0]

标签: pandas datetime jupyter-notebook jupyter


【解决方案1】:

你可以这样做:

print(earthquakes.index.values[0])

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-11-05
    • 2020-01-15
    • 2023-03-18
    • 2021-12-28
    • 2015-12-20
    • 2013-12-17
    • 1970-01-01
    相关资源
    最近更新 更多