Skip to content

Commit

Permalink
new convertion code update
Browse files Browse the repository at this point in the history
  • Loading branch information
AKmahim committed Jul 24, 2024
1 parent 3ce1096 commit ed25b0f
Show file tree
Hide file tree
Showing 9 changed files with 681 additions and 3 deletions.
Binary file added csv-to-excel/filtered_customers.xlsx
Binary file not shown.
6 changes: 3 additions & 3 deletions csv-to-excel/find-duplicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
import pandas as pd

# Load the Excel file
file_path = 'customers2.xlsx'
file_path = 'filtered_customers.xlsx'
df = pd.read_excel(file_path)

# Identify duplicated phone numbers
duplicated_phones = df[df.duplicated(subset=['Phone'], keep=False)]

# Further filter the rows where 'Interested To Buy' is 'yes'
# filtered_duplicated_phones = duplicated_phones[(duplicated_phones['Interested To Buy'].str.lower() == 'no') & (duplicated_phones['BP ID'] == 'JAT083')]
filtered_duplicated_phones = duplicated_phones[(duplicated_phones['Interested To Buy'].str.lower() == 'yes')]
filtered_duplicated_phones = duplicated_phones[(duplicated_phones['Interested To Buy'].str.lower() == 'no')]
# filtered_duplicated_phones = duplicated_phones[(duplicated_phones['Interested To Buy'].str.lower() == 'yes') | (duplicated_phones['Interested To Buy'].str.lower() == 'no')]

# Extract the relevant information
output_df = filtered_duplicated_phones[['BP ID', 'BP Name', 'Customer Name', 'Phone', 'Interested To Buy', 'Date', 'Time']]
Expand Down
Loading

0 comments on commit ed25b0f

Please sign in to comment.