Questions tagged [data-science]

Implementation questions about data science. Data science concerns extracting knowledge or insights from data, in whatever shape or form. It can contain predictive analytics and usually takes a lot of data wrangling. General questions about data science should be posted to their respective communities.

Filter by
Sorted by
Tagged with
0votes
0answers
4views

Appending from one dataframe to another dataframe (with different sizes) when two values match

I have two pandas dataframes and some of the values overlap and I'd like to append to the original dataframe if the time_date value and the origin values are the same. Here is my original dataframe ...
user avatar
0votes
2answers
22views

How to extract numbers from a DataFrame column in python?

Recently I was working on a Data cleaning assignment, where I used age_of_marriage dataset. I started to clean data, but in the dataset there is a "height" column which is of Object type. It ...
user avatar
0votes
0answers
9views

Extract date from tweets (Tweepy, Python)

I'm new to Python, and so I'm struggling a bit with this. Basically, I want to extract tweets from a certain date with the hashtag #bitcoin with the output columns being the tweet text, date of tweet ...
user avatar
0votes
0answers
15views

What would be the 'best' (efficient) way to implement a function that needs to integrate a large array of numbers?

I'm working with a function that needs to integrate the values of an array of numbers following an integrand function. This is implemented already in my code, but my problem is that each time I call ...
user avatar
  • 179
0votes
0answers
21views

What is type error while finding the accuracy_score?

accuracy=accuracy_score(y_test,prediction) print("accuracy: %.2f%%" % (accuracy*100.0)) I tried with this code but it gives me type error
user avatar
0votes
0answers
15views

Avoid X axis labels repetition in Altair chart

So I got this chart which displays a time series in X.Axis using yearmonth('date'):T. The thing is, it duplicates the labels to fill the spaces, but I don't want that behaviour. I'd like a single ...
user avatar
-1votes
0answers
13views

How to add a YTD flag to pyspark dataframe? [closed]

I have a timestamp field in the data and I don't want to hardcode values?
user avatar
0votes
1answer
28views

Can I add a vline and hline to a plotly plot ignoring marginal plots?

I am moving a visualization from the seaborn library to the plotly library. I want a scatterplot with marginal histograms for my x and y variables. I want to show a vertical and horizontal line for ...
user avatar
-1votes
0answers
15views

Generating new music with DCGAN, python

My main goal is to generate new/random music using DCGAN. I thought to take an audio, convert it to the image of the frequency graph, use DCGAN to generate new image of frequency graph and then ...
user avatar
  • 1
-3votes
0answers
12views

How can I adjust color in an image with python?

I took many pictures with different lightining. I have 4 markers (red, green, blue, yellow) and 4 other circles which change color (shapes of red, in the middle of the picture). How can I adjust ...
user avatar
-1votes
1answer
13views

Purpose of Row sampling with replacement and feature sampling in Random Forest?

In random forest we actually use bootstrap aggregation,actually we are following two steps like Row sampling with replacement and feature sampling for creating bootstrap sample,Actually my questions ...
user avatar
-1votes
1answer
27views

How can i change the dictionary output format in python

I am getting output in this format But I want output in this format Any Help will be appreciated Thankyou in Advance I've tried to convert my data into an array but it doesn't work as i want This is ...
user avatar
  • 1
-1votes
0answers
18views

Upweight minority class vs downsample+upweight majority class? [closed]

I've been getting some conflicting advice from various ML podcasts/videos/articles lately for how to deal with imbalanced datasets. Let's say my independent variable for a classification problem has ...
user avatar
0votes
1answer
39views

How do you save a keras class model

am having a problem with loading a Keras class model how to save RecommenderNet model and use it in future here are source codes for a recommender system here is the problem I used save function to ...
user avatar
  • 3
0votes
0answers
34views

Pandas outlier removal on rows only in specific colums

I have a pandas dataframe which is the combination of 3 different lists of different length, each of them having 4 columns. I would like to remove the upper and lower outliers on the dataframe using ...
user avatar

15 30 50 per page
1
2 3 4 5
498