# I want python code for data analysis

**URL:** <https://discuss.python.org/t/i-want-python-code-for-data-analysis/60956>\
**Category:** Python Help\
**Tags:** help\
**Created:** [August 15, 2024, 3:17pm UTC](https://discuss.python.org/t/i-want-python-code-for-data-analysis/60956 "2024-08-15T15:17:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mandar0407](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Mandar0407](https://discuss.python.org/u/Mandar0407)\
**Post date:** [August 15, 2024, 3:17pm UTC](https://discuss.python.org/t/i-want-python-code-for-data-analysis/60956/1 "2024-08-15T15:17:00Z")

</div>

You will find 4 separate csv datasets in the link above. Please download and use those  
for the assignment.

- Sales Data is at Product-Store-Day Level
- Price is at Product-Month Level
- Availability is at Product-Store-Day level
- Target dataset is at Product-Month level, with target being a quantity
- Revenue = Price \* Sales Quantity
- There could be missing values, duplicates and data type mismatches which you are  
expected to handle

1. Combine sales, price, availability and monthly target datasets to get daily sales,  
price, availability and monthly target

---

<div class="post-metadata">

**Author:** ![jamestwebber](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/jamestwebber/32/12799_2.png) [@jamestwebber](https://discuss.python.org/u/jamestwebber)\
**Post date:** [August 15, 2024, 3:20pm UTC](https://discuss.python.org/t/i-want-python-code-for-data-analysis/60956/2 "2024-08-15T15:20:22Z")

</div>

We’re not going to do your homework for you. If you have a specific question about how to write python to do this assignment, you can ask that.

---

<div class="post-metadata">

**Author:** ![Mandar0407](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Mandar0407](https://discuss.python.org/u/Mandar0407)\
**Post date:** [August 15, 2024, 3:23pm UTC](https://discuss.python.org/t/i-want-python-code-for-data-analysis/60956/3 "2024-08-15T15:23:15Z")

</div>

yes man this is the question i am totally blank help me in this assignment question

---

<div class="post-metadata">

**Author:** ![barry-scott](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@barry-scott](https://discuss.python.org/u/barry-scott)\
**Post date:** [August 15, 2024, 3:42pm UTC](https://discuss.python.org/t/i-want-python-code-for-data-analysis/60956/4 "2024-08-15T15:42:32Z")

</div>

Your teacher should have given you enough to get started.  
As you seem too be very stuck suggest you start with your teacher.

---

<div class="post-metadata">

**Author:** ![onePythonUser](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/onepythonuser/32/19158_2.png) [@onePythonUser](https://discuss.python.org/u/onePythonUser)\
**Post date:** [August 15, 2024, 4:13pm UTC](https://discuss.python.org/t/i-want-python-code-for-data-analysis/60956/5 "2024-08-15T16:13:14Z")

</div>

Hi,

reading `.csv` files is relatively easy using the `pandas` library package.

Start by referencing these two tutorials:

> **[Pandas Read CSV in Python - GeeksforGeeks](https://www.geeksforgeeks.org/python-read-csv-using-pandas-read_csv/)**
>
> A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

[https://www.datacamp.com/tutorial/pandas-read-csv](https://www.datacamp.com/tutorial/pandas-read-csv)

Remember that in `.csv` files, you can reference a particular cell by its row and column (much like a multiplication table).
