Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spyder: ndarray object of numpy module error
#1
Hi all,

I am going through the ML A-Z course on udemy to help me solve an assignment and I am at the stage of preprocessing my data at the moment. My code is as below:

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

dataset = pd.read_csv('Data.csv')
X = dataset.iloc[:,:-1].values
y = dataset.iloc[:,3].values
When I run the lines, my variable window can't seem to display the values of the X and y array and instead shows ndarray object of numpy module. When I double click on X or y, an error dialog pops up saying object arrays are currently not supported. What do I need to do to solve this problem? Is it okay to ignore it and continue coding?

I have already upgraded Spyder to the latest version as well but the problem remains.

Thank you.
Quote
#2
i was able to solve this issue on my own. it is a known problem while using Spyder but it's not an issue that will affect the code so I have ignored the error
Quote
#3
(Jan-12-2018, 06:57 PM)python_newbie09 Wrote: i was able to solve this issue on my own. it is a known problem while using Spyder but it's not an issue that will affect the code so I have ignored the error
How did you solve it? I have the same problem, my y-axes cant be loaded.
Quote
#4
How did you solve the error ?
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  homeworking using only numpy package kirito85 4 273 Dec-21-2018, 08:23 AM
Last Post: kirito85
  Changing "import numpy as np" to "from numpy import" ClintWestwood 4 273 Nov-28-2018, 06:45 AM
Last Post: nilamo
  Numpy array delete cells LB_994 1 242 Nov-19-2018, 09:20 AM
Last Post: ThiefOfTime
  numpy help: Uniform order-based crossover Mass17 0 192 Oct-18-2018, 10:05 PM
Last Post: Mass17
  How to stop an infinite loop in spyder if it's currently running? wlsa 3 2,687 Jun-30-2018, 03:27 AM
Last Post: ichabod801
  Integer object error Zatoichi 2 630 Feb-18-2018, 07:25 AM
Last Post: Zatoichi
  Spyder Assignment 1 Coursera Illvoices 2 521 Feb-08-2018, 05:18 AM
Last Post: Illvoices
  AttributeError: 'NoneType' object has no attribute error vk7 1 1,782 Feb-02-2018, 08:36 AM
Last Post: buran
  Saving an numpy.ndarray as .ply file in python Tina 4 2,885 Oct-11-2017, 06:08 PM
Last Post: Tina
  User input numpy array with color mapping & mouse click events imakeathepi 0 1,038 Aug-15-2017, 10:33 AM
Last Post: imakeathepi

Forum Jump:


Users browsing this thread: 1 Guest(s)