Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I am getting TypeError: unhashable type: ‘slice’ when executing the below code for encoding categorical data in Python. Can anyone please help? # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd# Importing the dataset dataset = pd.read_csv('50_Startups.csv') y=dataset.iloc[:, 4] X=dataset.iloc[:, 0:4]# Encoding ...

  • 0

I am working in a virtual environment. I am able to import and work in pandas without any error but when I am trying to import pandas_datareader import pandas as pd import numpy as np import matplotlib.pyplot as plt import datetime as dt from matplotlib import ...

  • 0

I am trying to read a .xlsx with pandas, but get the follwing error: data = pd.read_excel(low_memory=False, io="DataAnalysis1/temp1.xlsx").fillna(value=0)Traceback (most recent call last): File "/Users/Vineeth/PycharmProjects/DataAnalysis1/", line 9, in <module> data = pd.read_excel(low_memory=False, io="DataAnalysis1/temp1.xlsx").fillna(value=0) File "/Users/Vineeth/venv/lib/python2.7/site-packages/pandas/util/", line 118, in ...

  • 0

In the pandas library many times there is an option to change the object inplace such as with the following statement… df.dropna(axis='index', how='all', inplace=True) I am curious what is being returned as well as how the object is handled when inplace=True is passed vs. when inplace=False. Are all ...

  • 0

I’m doing some code practice and applying merging of data frames while doing this getting user warning /usr/lib64/python2.7/site-packages/pandas/core/ FutureWarning: Sorting because non-concatenation axis is not aligned. A future version of pandas will change to not sort by default. To accept the ...