What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-28 15:50:09
how to find the accuracy of linear regression model
# Simple Linear Regression # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Salary_Data.csv') X = dataset.iloc[:, :-1].values y = dataset.iloc[:, 1].values # Sp... Add solution -
Python 2022-02-28 13:00:02
read a csv file in pandas
import panda as pd file_csv = pd.read_csv("file path") ## as csv format file_excel = pd.read_excel("file path") ## as excel format file_json = pd.read_json("file path") ## as json format file_html = pd.read_html("file... Add solution -
Python 2022-02-18 01:55:03
how to map longitude and latitude in python
from shapely.geometry import Point import geopandas as gpd from geopandas import GeoDataFrame df = pd.read_csv("Long_Lats.csv", delimiter=',', skiprows=0, low_memory=False) geometry = [Point(xy) for xy in zip(df['Longitude'], df['Latitude'])] ... Add solution -
Other 2022-02-17 13:30:06
csv colab
# It will prompt you to select a file. Click on “Choose Files” then select and upload the file. Wait for the file to be 100% uploaded. from google.colab import files uploaded = files.upload() # To store dataset in a Pandas Dataframe import i... Add solution