However, there is no scientific basis for this statement, which is just a superstition among the people.
What's so particular about sweeping the floor?
When sweeping the floor, you should sweep things in one place and then sweep them together. Don't sweep one by one with a dustpan, let bad luck and good luck gather in one place, and then sweep or accumulate together.
At the same time, try to sweep the floor once a day, preferably in the morning, because the morning is the beginning of the day, when sweeping the floor can sweep away yesterday's bad luck and usher in today's good luck.