-
Notifications
You must be signed in to change notification settings - Fork 1.3k
AttributeError: 'DataFrame' object has no attribute 'name' #666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@glemaitre I think that is related with the sanity check that we were discussing about, no? The user passes something that has |
Yes but this is not pythonic to type check. We should probably look at attributes that are "couacing" better for |
@islrnd you should pass a numpy array or a pandas series, not a dataframe. |
This is a confusing issue. If I pass in a |
@00krishna post a sample code to reproduce you error. |
@chkoar Sorry, I realized I have all categorical features and that is causing the problem. |
@00krishna I am facing the similar issue.. Can you help me with it? |
@parth-mango You probably pass a data frame in |
I had the same issue, and was accidentally passing in a DataFrame for y instead of Series |
Hi there, I'm facing a similar issue that wasn't resolved after converting the initial DataFrame to Series. Please take a look at my question on SO https://datascience.stackexchange.com/questions/67141/passing-data-to-smote-after-applying-train-test-split |
@serjko please post a minimal reproducible example and your package versions. |
Hi @chkoar, Thanks for jumping in so quickly. This is a false alarm. The root cause was my dataset and not SMOTE. I made it work after cleaning up the data and passing Series as 2nd variable for |
@chkoar , Hey I am facing similar issue when I am using regex a string on entire dataframe . from tkinter import Tk def get_lookup_excel_path(): def upload_spreadsheet(path, active_sheet_only = True):
def combine_dataframe(dataframe): def get_springer_books_excel(): def main(): if name == 'main': |
@ertanuj96 sorry, I do not get it. Is this related to |
I had experienced this before. I resolved it by passing a dataframe into X and a Series into y. |
0.6.2 is out on PyPI and will be shortly available on conda-forge. Locking this issue |
The text was updated successfully, but these errors were encountered: