Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to install Facebook Prohpet?
Post: How to install Facebook Prohpet?

I have tried everything I can, tried installing pystan, using pip and everything. Searched on Google and YouTube but still no luck... I am using Windows 11 and Jupyter Notebook
SuperNinja3I3 Data Science 1 1,018 Jul-28-2022, 02:42 PM
    Thread: InvalidIndexError: (slice(None, None, None), slice(None, -1, None))
Post: InvalidIndexError: (slice(None, None, None), slice...

data = pd.read_csv('data.csv') X = data[:,:-1] Y = data['Outcome'] X_train,X_test,Y_train,Y_test = train_test_split(X,Y, test_size=0.3) model = GaussianNB() model.fit(X_train,Y_train) y_pred = mo...
SuperNinja3I3 General Coding Help 1 4,443 Jul-15-2022, 05:07 AM
    Thread: Can you help me with this code please
Post: RE: Can you help me with this code please

(Jul-04-2022, 08:55 AM)Larz60+ Wrote: Are there error messages (if so, post complete and without modification) Also, please provide some sample data. Please be a little more specific as to what is w...
SuperNinja3I3 Homework 2 1,963 Jul-04-2022, 10:35 AM
    Thread: Can you help me with this code please
Post: Can you help me with this code please

# Import statements from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from sklearn.metrics import r2_score import pandas as pd # Read the data. ...
SuperNinja3I3 Homework 2 1,963 Jul-04-2022, 04:48 AM
    Thread: how to reverse a list and store in another list in python
Post: RE: how to reverse a list and store in another lis...

(Jul-03-2022, 03:35 AM)XavierPlatinum Wrote: reversedList = mylist.reverse()Now, if it is homework and you have to right a function to do this yourself, my hints would be: #1 Using a negative index...
SuperNinja3I3 Homework 6 3,303 Jul-04-2022, 04:46 AM
    Thread: How to Write a function with Pandas?
Post: RE: How to Write a function with Pandas?

(Jul-03-2022, 05:03 AM)deanhystad Wrote: Learning a lot?Bruh I have exams... So practicing about it
SuperNinja3I3 Homework 4 2,352 Jul-03-2022, 05:24 AM
  Question Thread: How to Write a function with Pandas?
Post: How to Write a function with Pandas?

Write a function that takes the start and end of a range returns a Pandas series object containing numbers within that range. In case the user does not pass start or end or both they should default to...
SuperNinja3I3 Homework 4 2,352 Jul-03-2022, 04:39 AM
    Thread: how to reverse a list and store in another list in python
Post: how to reverse a list and store in another list in...

I want to reverse a list but want to store it in another list... reverse the elements of the ‘myList’ and store that in ‘reversedList’
SuperNinja3I3 Homework 6 3,303 Jul-02-2022, 03:41 PM
  Question Thread: how to write a function that accepts a 1D array as a parameter in Python
Post: how to write a function that accepts a 1D array as...

5. Given a 1 D Numpy Array. Write a function that accepts this array as parameters. The method should return a dictionary with 'mean' and 'std_dev' as key and array's mean and array's standard devia...
SuperNinja3I3 Data Science 1 1,617 Jul-02-2022, 12:46 PM
  Question Thread: Cant understand the question...
Post: Cant understand the question...

3. Given a 2 D Array of N X M Dimension, Write a function that accepts this array as well as two numbers N and M. The method should return the top-left N X M sub matrix e.g: [ [1, 2, 3], [4, 5, 6],...
SuperNinja3I3 Data Science 3 2,469 Jul-01-2022, 01:46 PM

User Panel Messages

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