Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You work at Superstore, an office supply retail company that operates in different US states. You were tasked with analysing the sales data from the

You work at Superstore, an office supply retail company that operates in different US states. You were tasked with analysing the sales data from the different states over the past years and check if you are on the path to growth. The data is stored in a file called superstore_data.csv. Your work will include data exploration and analysis tasks that will allow you to understand the data and suggest on a new path to growth.
question:
Objective: load data
Create the function import data(csv_filename) to Import the data from a csv to a pandas dataframe. The function receives as an input a string with the file path for a cvs file and returns a pandas dataframe. When reading the file: a) use ", as a separator, and b) the file has headers and no index.
Example of usage:
df = import_data("superstore_data.csv")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Relational Model A Retrospective Review And Analysis

Authors: C. J. Date

1st Edition

0201612941, 978-0201612943

More Books

Students also viewed these Databases questions