我正在尝试在 Python 中进行一些数据分析。但我不断收到错误:
sc=SparkSession.builder.master("local").appName("app").getOrCreate()
df=sc.read.format('csv').option('header',True).option('multiline',True).load("path\.csv")
>>> report = spark_df_profiling.ProfileReport(df)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python38-32\lib\site-packages\spark_df_profiling\__init__.py", line 19, in __init__
description_set = describe(df, bins=bins, corr_reject=corr_reject, **kwargs)
File "C:\Python38-32\lib\site-packages\spark_df_profiling\base.py", line 442, in describe
ldesc = {colum: describe_1d(df, colum, table_stats["n"]) for colum in df.columns}
File "C:\Python38-32\lib\site-packages\spark_df_profiling\base.py", line 442, in <dictcomp>
ldesc = {colum: describe_1d(df, colum, table_stats["n"]) for colum in df.columns}
File "C:\Python38-32\lib\site-packages\spark_df_profiling\base.py", line 401, in describe_1d
result = results_data.ix[0].copy()
File "C:\Python38-32\lib\site-packages\pandas\core\generic.py", line 5139, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'ix'```**strong text**