Solution was linked on reshaped method on documentation page.
Insted of Y.reshape(-1,1)
you need to use:
Y.values.reshape(-1,1)
Related Posts:
- pandas: merge (join) two data frames on multiple columns
- How to Read .txt in Pandas
- Type error: cannot convert the series to
- Why Python 3.6.1 throws AttributeError: module ‘enum’ has no attribute ‘IntFlag’?
- Pandas long to wide reshape, by two variables
- ImportError: No module named ‘xlrd’
- Moving Average Pandas
- matplotlib: plot multiple columns of pandas data frame on the bar chart
- How to print a specific row of a pandas DataFrame?
- SyntaxError: unexpected EOF while parsing
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How to install pip with Python 3?
- Import Error: No module named numpy
- TypeError: a bytes-like object is required, not ‘str’ when writing to a file in Python3
- Writing a pandas DataFrame to CSV file
- Best way to convert string to bytes in Python 3?
- ImportError: No module named pandas
- How to change the order of DataFrame columns?
- ImportError: No module named pandas. Pandas installed pip
- How can I use the apply() function for a single column?
- Convenient way to deal with ValueError: cannot reindex from a duplicate axis
- Using Python 3 in virtualenv
- “Series objects are mutable and cannot be hashed” error
- WinError 2 The system cannot find the file specified (Python)
- Merging dataframes on index with pandas
- hashlib.md5() TypeError: Unicode-objects must be encoded before hashing
- Could not find a version that satisfies the requirement tensorflow
- Local variable referenced before assignment?
- DataFrame constructor not properly called! error
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- ‘method’ object is not subscriptable. Don’t know what’s wrong
- pandas DataFrame “no numeric data to plot” error
- How to upgrade pip3?
- TypeError: Missing 1 required positional argument: ‘self’
- Why do I get AttributeError: ‘NoneType’ object has no attribute ‘something’?
- What is __pycache__?
- SystemError: Parent module ” not loaded, cannot perform relative import
- TypeError: ‘<=' not supported between instances of 'str' and 'int' [duplicate]
- TypeError: unsupported operand type(s) for -: ‘str’ and ‘int’
- pandas: filter rows of DataFrame with operator chaining
- Pandas how to use pd.cut()
- TypeError: can’t use a string pattern on a bytes-like object in re.findall()
- Why am I getting AttributeError: Object has no attribute?
- Pinging servers in Python
- Get total of Pandas column
- Change column type in pandas
- How to remove punctuation marks from a string in Python 3.x using .translate()?
- Subplot for seaborn boxplot
- enumerate() for dictionary in python
- Python: pandas merge multiple dataframes
- How to load a tsv file into a Pandas DataFrame?
- How to count the NaN values in a column in pandas DataFrame
- How to use sys.exit() in Python
- Pandas – DataFrame object is not callable
- installing urllib in Python3.6
- What is sys.maxint in Python 3?
- Converting strings to floats in a DataFrame
- Get first row value of a given column
- AttributeError: ‘module’ object has no attribute
- How to filter Pandas dataframe using ‘in’ and ‘not in’ like in SQL
- How to add an empty column to a dataframe?
- How to apply a function to two columns of Pandas dataframe
- Convert categorical data in pandas dataframe
- pandas create new column based on values from other columns / apply a function of multiple columns, row-wise
- OSError: Initializing from file failed on csv in Pandas
- Youtube_dl : ERROR : YouTube said: Unable to extract video data
- AttributeError: Can only use .str accessor with string values, which use np.object_ dtype in pandas
- Insert a row to pandas dataframe
- Python Pandas ValueError Arrays Must be All Same Length
- Anaconda Installed but Cannot Launch Navigator
- How to save a Seaborn plot into a file
- ImportError: No module named ‘yaml’
- TypeError: ‘_io.TextIOWrapper’ object is not subscriptable
- Subtract two columns in dataframe
- pandas DataFrame: replace nan values with average of columns
- Pandas error “Can only use .str accessor with string values”
- ImportError: No module named ‘cv2’ Python3
- How do I run pip on python for windows?
- Need to install urllib2 for Python 3.5.1
- Rename specific column(s) in pandas
- pip3 error – ‘_NamespacePath’ object has no attribute ‘sort’
- What does {0} mean in this Python string?
- Tab Error in Python
- Python 3.5.1 urllib has no attribute request
- python pandas remove duplicate columns
- Why do I get this error “TypeError: ‘method’ object is not iterable”?
- What is the purpose of dollar sign in this Python3 string formatting expression?
- What is the meaning of “int(a[::-1])” in Python?
- Pandas unstack problems: ValueError: Index contains duplicate entries, cannot reshape
- Python: Convert timedelta to int in a dataframe
- Calculate weighted average using a pandas/dataframe
- Getting a name error when trying to input a string [duplicate]
- TypeError: fit() missing 1 required positional argument: ‘y’
- ValueError: multiclass format is not supported
- Error loading MySQLdb module: No module named ‘MySQLdb’
- How do you switch between python 2 and 3, and vice versa?
- Iterating over dictionary items(), values(), keys() in Python 3
- ValueError: Must pass DataFrame with boolean values only
- Python 3 integer division [duplicate]
- Python – difference between two strings