Problems importing pandas.plotting

后端 未结 4 499
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-03 20:48

When I import pandas, everything is fine and working. Yet, when I try to import something from pandas.plotting im getting an error. What could be the source of

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 21:12

    If you get this warning:

    main:1: FutureWarning: 'pandas.tools.plotting.scatter_matrix' is deprecated, import 'pandas.plotting.scatter_matrix' instead.

    import pandas.plotting
    

    or

    from pandas.plotting import scatter_matrix
    

    https://github.com/pandas-dev/pandas/pull/13579/files/fe8b918a7c7f322a6806d3b262b7b36bbd01da80#diff-52364fb643114f3349390ad6bcf24d8f

提交回复
热议问题