Sep-27-2023, 07:48 PM
(This post was last modified: Sep-27-2023, 07:48 PM by deanhystad.)
It is not really a language thing. It is a forum thing. This is a Python forum, so posters ask technical questions related to Python. The problem with this is most programs fail in the design stage, not the coding stage. I worry that many of the answers provided here fail to solve the real problem, the problem in design that is hidden behind a technical problem. snippsat's earlier response is a technically excellent solution to a problem that I don't think exists.
I have growing confidence that your approach to filtering is wrong, but I have a question about this.
In an earlier post your said this "im using examples from internet". Do you have a link to something that uses your filtering method? I am curious.
I have growing confidence that your approach to filtering is wrong, but I have a question about this.
elif not any ([regionas, marketas]): filtered_df = df[df["State"].isin(valstija)] elif valstija and marketas: filtered_df = df12[df["State"].isin(valstija) & df12["Marketas"].isin(marketas)]What is df12, and how does it differ from df? Is df12 the same as df with just the 12 filter columns? If true, does that mean that selecting state and market results in your filtered_df having fewer columns when you filter Market and State than if you only filter Market?
In an earlier post your said this "im using examples from internet". Do you have a link to something that uses your filtering method? I am curious.