You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I write data into a new xlsx table via pandas. Later, I add drop list menu function by openpyxl. But, if I want to add more rows later by pandas again, like this,
import pandas as pd
df = pd.read_excel('~/Downloads/Predict.xlsx')
The pre-defined drop list menu function is lost, after the edited xlsx file is saved by pandas.
Feature Description
Maybe it is a reasonable function to add pandas's self features to support drop-down list menu.
Alternative Solutions
Or, maybe it is reasonable to enable pandas's support for the drop-down list menu function of openpyxl
Additional Context
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for the request. I do not think pandas can support Excel features like this in maintainable manner. I recommend having a function to add the drop-down list after writing to the Excel file if it needs to happen multiple times.
Thank you for your update, pal. Yep, there are some methods to achieve the goal. I was thinking of a more native way, using only pandas to do this. Anyway, many thanks for your clarification.
import pandas as pd
import numpy as np
from openpyxl import load_workbook
from openpyxl.utils.dataframe import dataframe_to_rows
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
I write data into a new xlsx table via pandas. Later, I add drop list menu function by openpyxl. But, if I want to add more rows later by pandas again, like this,
The pre-defined drop list menu function is lost, after the edited xlsx file is saved by pandas.
Feature Description
Maybe it is a reasonable function to add pandas's self features to support drop-down list menu.
Alternative Solutions
Or, maybe it is reasonable to enable pandas's support for the drop-down list menu function of openpyxl
Additional Context
Thanks!
The text was updated successfully, but these errors were encountered: