a95a9f1bc3584bf2286bddae90f1acb6e98c3808
python/pandas/DataFrame\343\201\213\343\202\211\343\200\201\343\203\252\343\202\271\343\203\210\343\201\253\345\220\253\343\201\276\343\202\214\343\202\213\345\210\227\345\220\215\344\273\245\345\244\226\343\201\256\345\210\227\343\202\222\345\211\212\351\231\244\343\201\231\343\202\213.md
... | ... | @@ -0,0 +1,5 @@ |
1 | +[Drop columns from Pandas dataframe if they are not in specific list - Stack Overflow](https://stackoverflow.com/questions/56891518/drop-columns-from-pandas-dataframe-if-they-are-not-in-specific-list) |
|
2 | + |
|
3 | +```python |
|
4 | +pandas_df = pandas_df[pandas_df.columns.intersection(final_table_columns)] |
|
5 | +``` |
|
... | ... | \ No newline at end of file |