import sklearn
from sklearn.datasets import load_boston
import pandas as pd
import matplotlib.pyplot as plt

Load the dataset

bos_hou = load_boston()

Create the dataframe

column_name = bos_hou.feature_names
df_boston = pd.DataFrame(
df_boston.columns = column_name

A few issues.

  1. The code presented doesn't look like like any Python I've seen to date. Maybe you need to try again.
  2. Conversion is usually a line by line job. If you find you need a library function you either create or find it.
  3. Looking at sklearn alone it appears you have a year long project alone to implement that in C.

In short, hope you have the time to do this and my question must be: Why do this if it works in Python today?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.