简体   繁体   English

我想使用 python 执行数据分析

[英]I want to perform data analysis using python

I just want to do these 3 steps:我只想做这三个步骤:

  1. identify the missing data识别缺失的数据
  2. impute the missing values in the data using k-means or k-nearest-neighbor imputation.使用 k-means 或 k-最近邻插补来插补数据中的缺失值。
  3. return the imputed data and compare it with the complete data to measure the accuracy and reliability of your results返回估算数据并将其与完整数据进行比较,以衡量结果的准确性和可靠性

Kindly suggest how to do it.请建议如何做。

Your question isn't formulated very well, but here's some things that might work for your application.您的问题表述得不是很好,但这里有一些可能对您的应用程序有用的东西。

  1. pandas.isnan pandas.isnan
  2. pandas.interpolate pandas.interpolate
  3. mse = lambda y1, y2: (y2 - y1)**2 mse = lambda y1, y2: (y2 - y1)**2

so you have data set in csv format or other.所以你有 csv 格式或其他格式的数据集。 you can first load the data using the pandas library and fill the missing values.您可以首先使用 pandas 库加载数据并填充缺失值。

Build the model: mse = lambda y1, y2: (y2 - y1)**2构建 model: mse = lambda y1, y2: (y2 - y1)**2

Test with sample data set on this model.使用此 model 上的样本数据集进行测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用图在Python中执行统一评估分析 - How to perform univaraiate Analysis in Python using Plots 是否可以使用python执行参数灵敏度分析? - Is it possible to perform a parameter sensitivity analysis using python? Python:使用FFT进行数据分析 - Python: Data analysis using FFT 使用Python Pandas进行数据分析 - Data Analysis using Python Pandas 如何从python中的Landat数据对多个波段进行PCA分析? - How to perform a PCA analysis for multiple bands from landsat data in python? 复杂的Pandas数据框操作,可使用Python执行绘图和统计分析 - Complex manipulation of Pandas data frame to perform plotting and statistical analysis with Python 我想使用python脚本刮取数据 - i want to scrape data using python script 如何将用户输入完全转换为用于训练分类器的处理数据? 我想对用户输入文本进行情感分析 - How can I transform user Input exactly as processed data that I used to train the classifier? I want to perform sentiment analysis on user input text 在python中对多个文件执行分析 - Perform analysis on multiple files in python 我在 mongodb 中有一个数据集。我想执行一些用 python 编码的函数。我如何在它上面执行这些函数(即给定数据的条形图) - I have a dataset in mongodb.I want to perform some functions coded in python.How do I perform those functions on it(i.e.bar graph of the given data)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM