Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: ValueError: Found input variables with inconsistent numbers of samples: [5, 6]
Post: RE: ValueError: Found input variables with inconsi...

I faced a similar problem while fitting a regression model . The problem in my case was, Number of rows in X was not equal to number of rows in y. You likely get problems because you remove rows conta...
ricslato Data Science 6 25,782 Jun-28-2021, 05:23 AM
    Thread: How to rename dataframe columns based on the content in an index?
Post: RE: How to rename dataframe columns based on the c...

Rename DataFrame DataFrame.rename({'old_name': 'new_name'}, axis=1, inplace=True)
ricslato General Coding Help 2 2,469 Jun-07-2021, 06:09 AM
    Thread: import columns of data from local csv file
Post: RE: import columns of data from local csv file

use pandas read_csv() import pandas as pd df = pd.read_csv ('data.csv') print(df) Use your filename with full path instead of 'data.csv'
ricslato Data Science 2 3,334 May-10-2021, 05:10 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020