Questions tagged [data-science-experience]

IBM Data Science Experience is an interactive, collaborative, cloud-based environment where data scientists can use multiple tools to activate their insights.

IBM Data Science Experience is an interactive, collaborative, cloud-based environment where data scientists can use multiple tools to activate their insights.

Source: http://datascience.ibm.com/blog/welcome-to-the-data-science-experience/

261 questions
0
votes
1 answer

Finding the root of an equation using binary search python

help me here, estimating the root of the equation. Here is a code: def binary_search(f,domain, MAX = 1000): start, end = domain if start >= end: raise ValueError("Domain is empty") mid = (start + end) / 2 fmid = f(mid) …
Dushu
  • 31
  • 4
0
votes
2 answers

how to convert multiple rows into single column for a time series data?

I have time series data or and one group has multiple rows. So, I need to transform that multiple rows into a single row for a group in python. I have this dummy dataset. data = [ ['A','test1',1,2,3,4], ['A','test1',5,6,7,8], …
0
votes
1 answer

How to fill NA values with applying condition?

I am trying to replace null values with 0 by applying certain conditions. Here is the code to generate the dataset. data = {'month': ['2022-01-01', '2022-02-01', '2022-03-01', '2022-01-01', '2022-02-01', '2022-03-01', '2022-04-01', '2022-05-01',…
0
votes
1 answer

Predict a data using Pickle file

I have pre build machine learning model (saved as pickle file) to predict classification. My question is when I use new dataset to predict using Pickle file do I need do all preprocessing steps (like transformation and encoding) to the new testing…
0
votes
0 answers

how can we interpret Precision, Precision@K, ROC curve and precision-recall AUC curve

I am performing a logistic regression and performing probabilistic modeling. When I go through the definition of this ** Precision, Precision@K, ROC curve, and precision-recall AUC curve** performance metrics I am not able to differentiate…
0
votes
1 answer

How to plot moving average by groupby in python?

I have a question related to plotting the moving average by doing group by. I have taken the dataset from Kaggle https://www.kaggle.com/code/kp4920/s-p-500-stock-data-time-series-analysis/comments. I have extracted the few rows by applying the below…
0
votes
0 answers

How to write a double summation in Python with multiple variables , I am a new programmer in the data science field

enter image description here I am a new programmer in the Data field and need help to write in Python
0
votes
0 answers

a problem to Convert XML File dataset to JSON in python

I have been trying to convert a dataset file in XML format to JSON. I tried many solutions, I always got the same error ExpatError: not well-formed (invalid token): line 67667, column 103 I tried untangle, xmltodict, pandas_read_xml as pdx This is…
ahad
  • 11
  • 2
0
votes
1 answer

Python: how to install dsx_core_utils package

I'm trying to adapt the code snippets presented on the following page: https://www.ibm.com/docs/en/watson-studio-local/1.2.1?topic=data-write-sources However, I don't understand where to get the dsx_core_utils package at the beginning and how to…
TheDude
  • 1,205
  • 2
  • 13
  • 21
0
votes
2 answers

LF Framework to solve Data Science Issue

i'm looking for a framework that is able to solve the following Data Science issue: I have several Teachers that can work for X amount of hours a week and have several subject that they can teach. Teacher 1: Math Teacher 2: Math + English Teacher…
0
votes
0 answers

How would I connect to a WinDSX server with .Net so I can query the database?

I need to be able to query a WinDSX server from .Net. This is the first time I have worked with a DSX server and I can't seem to find anything that really explains how to do this. Is there some type of ODBC driver I can use?
Chris
  • 838
  • 1
  • 15
  • 27
0
votes
1 answer

Web scraper giving random values

At work I was tasked with doing a market analysis of bricks. I chose some competitors and made web scrapers to collect their prices. It works for most brick types, however on some it will change the value or say there's isn't a match when there…
0
votes
2 answers

How to split year and month column in python?

How can we split the data as mention below? Sample Data: EmployeeId City join_month Year 0 001 Mumbai 1 2018 1 001 Bangalore 3 2018 2 002 Pune 2 2019 3 002 Mumbai …
0
votes
0 answers

My pandas code is not working, in the tutorial the same code worked without any error

(df.set_index('STNAME').groupby(level=0)['CENSUS2010POP'] .agg({'sum': np.sum, 'avg': np.average})) I am getting the following error while using the above code: nested renamer is not supported
0
votes
1 answer

How to initialise value for LPVARIABLE.matrix in PULP?

I am trying to set initial values for the below created decision variable, but when I try to do am getting an error? dec_var = LpVariable.matrix("dec_var",(range(10),range(10)),0,1,cat = 'Binary') for i in range(10): for j in range(10): …