df = pd.read_json("your_json_file.json") # load your json data
required_columns = ["col1", "col2", "col3"] # replace with your actual column headers
for col in required_columns:
if col not in df.columns:
df[col] = None # or replace with some default value
1条答案
按热度按时间v1l68za41#
我看到:
字符串