Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 93933

Use for data science questions related to the programming language Python. Not intended for general coding questions (which should be asked on Stack Overflow).

1 vote
Accepted

Keeping DataFrame in Memory while working - R vs Python in VS Code

To do this in Python, consider using a Jupyter Notebook or something similar. …
Derek O's user avatar
  • 354
0 votes

Find the Weight Values using Linear Regression Analysis in Python

Try the scikit-learn library. From the documentation for linear regression: "LinearRegression fits a linear model with coefficients w = (w1, ..., wp) to minimize the residual sum of squares between t …
Derek O's user avatar
  • 354
1 vote

Applying a keras model working with greyscale images to RGB images

Two things come to mind: You can add a data generator. This will generate new images from your current images by introducing a bunch of small changes (i.e. randomly rotating, zooming, shearing, shift …
Derek O's user avatar
  • 354
0 votes
Accepted

How to add column name

Loop through df.columns checking whether there is a column name or if it is empty: import pandas as pd # create df with two empty columns df = pd.DataFrame({'a': [1,2], 'b': [1,2], 'c': [1,2], 'd':[ …
Derek O's user avatar
  • 354