five

Statistical Analysis of ONGC Stock

收藏
NIAID Data Ecosystem2026-05-01 收录
下载链接:
https://data.mendeley.com/datasets/c9nbg688tg
下载链接
链接失效反馈
官方服务:
资源简介:
The provided data is sourced from a CSV file named 'ONGCprice.csv' and represents historical closing prices for a financial asset, likely the Oil and Natural Gas Corporation (ONGC) given the filename. The data is loaded into a DataFrame using the pandas library in Python for analysis and visualization. The first few rows of the DataFrame are displayed using the head() function to provide an initial glimpse into the dataset's structure and content. Summary statistics of the dataset are computed using the describe() function, which includes metrics such as count, mean, standard deviation, minimum, 25th percentile, median (50th percentile), 75th percentile, and maximum values for each numeric column in the DataFrame. These statistics offer insights into the central tendency, variability, and distribution of the closing prices over the given period. Additionally, specific calculations are performed on the closing price data: The average closing price is computed using the mean() function to determine the typical value of the asset over the observed period. The highest closing price is identified using the max() function, indicating the peak value reached by the asset during the period. The lowest closing price is determined using the min() function, representing the minimum value observed for the asset's closing price. Finally, a line plot of the closing prices is generated using the plot() function to visualize the trend and fluctuations in the asset's prices over time. The title of the plot is set as 'Closing Prices for ONGC' to provide context to the plotted data.

本数据集源自名为‘ONGCprice.csv’的逗号分隔值(Comma-Separated Values, CSV)文件,记录了某金融资产的历史收盘价——结合文件名可推断,该资产为石油天然气公司(Oil and Natural Gas Corporation, ONGC)。我们采用Python的pandas库将数据加载至数据框(DataFrame)中,用于后续的分析与可视化工作。 通过head()函数展示该数据框的前若干行,以初步了解数据集的结构与内容。 借助describe()函数可计算得到数据集的汇总统计指标,涵盖数据框中各数值列的计数、均值、标准差、最小值、25%分位数、中位数(50%分位数)、75%分位数与最大值。此类统计量能够揭示观测周期内该资产收盘价的集中趋势、离散程度与分布特性。 此外,我们还针对收盘价数据开展了多项针对性计算: - 通过mean()函数计算平均收盘价,以确定观测周期内该资产的典型价格水平; - 利用max()函数提取最高收盘价,代表观测周期内该资产价格达到的峰值; - 借助min()函数确定最低收盘价,即该资产收盘价在观测周期内的最低观测值。 最终,我们使用plot()函数生成收盘价折线图,以可视化该资产价格随时间变化的走势与波动情况,并将图表标题设置为‘ONGC收盘价’,为可视化内容提供清晰的上下文说明。
创建时间:
2024-04-23
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作