Machine Learning Queries

Guys ask any queries here .

1 Like

some real time dataset links please

2 Likes

i am not able to load this dataset scikit-learn/boston_house_prices.csv at main · scikit-learn/scikit-learn · GitHub

using following code
data=pd.read_csv(r’scikit-learn/boston_house_prices.csv at main · scikit-learn/scikit-learn · GitHub’)

2 Likes

str=input("Enter string: “)
for i in range(len(str)):
count = 1
for j in range(i+1,len(str)):
if (str[i]==str[j] and str[j]!=‘’):
count=count+1
if (count>1 and str[i]!=‘0’):
print(” ",str[i], “-”, count)

it’s about finding duplicates in a string, please test it with “good morning” string

1 Like

Try this @mankargaurav0802

import pandas as pd
df = pd.read_csv(“https://raw.githubusercontent.com/scikit-learn/scikit-learn/main/sklearn/datasets/data/boston_house_prices.csv”)
df

1 Like

What error you are getting?

1 Like

Here you go @mick4mayank

1 Like

it’s not error, check this:
Enter string: good morning
g - 2
o - 2
o - 3
o - 2
n - 2

1 Like

thanks for quick reply… .

3 Likes

@mick4mayank

Your code was correct.
I was asking to Gaurav Mankar.

2 Likes