Closed Violetbit closed 6 months ago
iris_df = sns.load_dataset("iris")
ValueError Traceback (most recent call last) Cell In[6], line 2 1 # 使用seaborn.load_dataset函数加载Iris数据集 ----> 2 iris_df = sns.load_dataset("iris")
File ~\anaconda3\Lib\site-packages\seaborn\utils.py:587, in load_dataset(name, cache, data_home, **kws) 585 if not os.path.exists(cache_path): 586 if name not in get_dataset_names(): --> 587 raise ValueError(f"'{name}' is not one of the example datasets.") 588 urlretrieve(url, cache_path) 589 full_path = cache_path
ValueError: 'iris' is not one of the example datasets.
重新装一下seaborn 或者,从scikit learn或plotly加载鸢尾花数据集
On Wed, Jan 10, 2024 at 11:25 PM Violetbit @.***> wrote:
iris_df = sns.load_dataset("iris") 使用seaborn.load_dataset函数加载Iris数据集 iris_df = sns.load_dataset("iris")
ValueError Traceback (most recent call last) Cell In[6], line 2 1 # 使用seaborn.load_dataset函数加载Iris数据集 ----> 2 iris_df = sns.load_dataset("iris")
File ~\anaconda3\Lib\site-packages\seaborn\utils.py:587, in load_dataset(name, cache, data_home, **kws) 585 if not os.path.exists(cache_path): 586 if name not in get_dataset_names(): --> 587 raise ValueError(f"'{name}' is not one of the example datasets.") 588 urlretrieve(url, cache_path) 589 full_path = cache_path
ValueError: 'iris' is not one of the example datasets.
— Reply to this email directly, view it on GitHub https://github.com/Visualize-ML/Book1_Python-For-Beginners/issues/139#issuecomment-1886221243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZHC6V3U6MJNRUN7IWFJXRTYN5STBAVCNFSM6AAAAABBV3CUJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBWGIZDCMRUGM . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>
重装seaborn的方法失败,从scikit learn中导入成功但是iris.head()运行失败。从seaborn中导入的iris和scikit learn中导入的iris好像数据类型不一样
scikit learn特征数据是NumPy Array. 你再试试plotly导入
On Fri, Jan 12, 2024 at 2:50 AM Violetbit @.***> wrote:
重装seaborn的方法失败,从scikit learn中导入成功但是iris.head()运行失败。从seaborn中导入的iris和scikit learn中导入的iris好像数据类型不一样
— Reply to this email directly, view it on GitHub https://github.com/Visualize-ML/Book1_Python-For-Beginners/issues/139#issuecomment-1888584366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZHC6VYIRDNN6LVOAJBLD6LYODTLJAVCNFSM6AAAAABBV3CUJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBYGU4DIMZWGY . You are receiving this because you commented.Message ID: @.***>
成功了,感谢
Book1_Ch07第7页isdigit()只对0和正整数有效,文章中表述“使用isdigit的方法检查输入是否是一个数值”存在问题
谢谢你,请继续批评指正。这个issue先开着,二月份修改。
On Mon, Jan 15, 2024 at 7:48 AM Violetbit @.***> wrote:
Book1_Ch07第7页isdigit()只对0和正整数有效,文章中表述“使用isdigit的方法检查输入是否是一个数值”存在问题
— Reply to this email directly, view it on GitHub https://github.com/Visualize-ML/Book1_Python-For-Beginners/issues/139#issuecomment-1892115354, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZHC6V7KSM5KTIBL3W6DVIDYOUQQ3AVCNFSM6AAAAABBV3CUJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJSGEYTKMZVGQ . You are receiving this because you commented.Message ID: @.***>
从Seaborn导入鸢尾花数据集这个代码我运行不了 ![Uploading 微信图片_20240111122345.png…]()