Spyder Python “object arrays are currently not supported”

A good example is here import numpy as np import pandas as pd import matplotlib.pyplot as plt dataset = pd.read_csv(‘Salary_Data.csv’) #in your case right name of your file X=dataset.iloc[:,:-1].values #this will convert dataframe to object df = pd.DataFrame(X) You can view data in dataframe this converts arrray to dataframe . And the variable explorer accepts … Read more

Python Multiprocessing error: AttributeError: module ‘__main__’ has no attribute ‘__spec__’

The problem is not with the code / Python 3.6, it is with Spyder. After some investigation I found that the code runs fine when executed in an external system terminal but not when run in Spyder’s IPython console. I was able to dump the contents of spec and assign them to a variable that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)