Skip to content

Commit

Permalink
feat: updated load_sample_mercedes_listings() function
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergerlach committed Jan 21, 2023
1 parent 252965d commit b418ebe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/mercedestrenz/data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Author: Spencer Gerlach
# Date: 2023-01-12
# Date: 2023-01-20
from importlib import resources
import pandas as pd
import numpy as np
Expand All @@ -16,10 +16,12 @@ def load_sample_mercedes_listings()-> pd.DataFrame():
Examples
--------
>>> from mercedestrenz.datasets import get_listings
>>> sample_mercedes_listings = get_listings()
>>> from mercedestrenz.data import load_sample_mercedes_listings
>>> sample_mercedes_listings = load_sample_mercedes_listings()
"""
pass
with resources.path('mercedestrenz.datasets', 'mercedes.csv') as d:
data = pd.read_csv(d, index_col=0)
return data


# Author: Kelly Wu
Expand Down

0 comments on commit b418ebe

Please sign in to comment.