Unlocking the Power of the New Oil...  Your Data, Our Expertise!

   +91 89730 57401    Chennai, India

Data Analytics

Sample code for Testing

import pandas as pd

# Load the data from a CSV file
df = pd.read_csv('data.csv')

# Print the first five rows of the data
print(df.head())

# Print the summary statistics of the data
print(df.describe())

# Create a histogram of the data
df['column_name'].hist()
plt.show()

# Create a scatter plot of two columns
df.plot.scatter(x='column_name_1', y='column_name_2')
plt.show()

# Create a linear regression model
model = pd.ols('column_name_2 ~ column_name_1', data=df).fit()

# Print the model coefficients
print(model.params)

# Make a prediction
prediction = model.predict(pd.DataFrame({'column_name_1': [10]}))

# Print the prediction
print(prediction)


Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newsletter
Product